socketflow 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {socketflow-0.2.2 → socketflow-0.2.3}/PKG-INFO +1 -1
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/__init__.py +1 -1
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/server_side/server.py +8 -9
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow.egg-info/PKG-INFO +1 -1
- {socketflow-0.2.2 → socketflow-0.2.3}/README.md +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/setup.cfg +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/setup.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/client_side/__init__.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/client_side/client.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/__init__.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/blueprint.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/compression.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/dispatcher.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/event.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/event_loop.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/exceptions.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/logs.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/message_handler.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/message_manager.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/metrics.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/protocol.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/global_side/transport.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow/server_side/__init__.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow.egg-info/SOURCES.txt +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow.egg-info/dependency_links.txt +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow.egg-info/not-zip-safe +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow.egg-info/requires.txt +0 -0
- {socketflow-0.2.2 → socketflow-0.2.3}/socketflow.egg-info/top_level.txt +0 -0
|
@@ -821,20 +821,17 @@ class TcpServer:
|
|
|
821
821
|
pass
|
|
822
822
|
|
|
823
823
|
protocol.attach_socket(client_socket)
|
|
824
|
-
try:
|
|
825
|
-
protocol._send_server_ready()
|
|
826
|
-
except Exception:
|
|
827
|
-
protocol.handle_connection_lost()
|
|
828
|
-
return
|
|
829
824
|
with self._clients_lock:
|
|
830
825
|
self._clients[address] = protocol
|
|
831
|
-
|
|
832
826
|
try:
|
|
827
|
+
protocol._send_server_ready()
|
|
833
828
|
if not self.auth_required:
|
|
829
|
+
if self.require_handshake:
|
|
830
|
+
protocol._send_handshake_ok()
|
|
834
831
|
protocol._notify_connected()
|
|
835
832
|
except Exception:
|
|
836
833
|
protocol.handle_connection_lost()
|
|
837
|
-
|
|
834
|
+
return
|
|
838
835
|
|
|
839
836
|
while True:
|
|
840
837
|
try:
|
|
@@ -949,6 +946,10 @@ class TcpServer:
|
|
|
949
946
|
self._clients[address] = protocol
|
|
950
947
|
protocol._event_loop_mode = False
|
|
951
948
|
protocol._send_server_ready()
|
|
949
|
+
if not self.auth_required:
|
|
950
|
+
if self.require_handshake:
|
|
951
|
+
protocol._send_handshake_ok()
|
|
952
|
+
protocol._notify_connected()
|
|
952
953
|
protocol._event_loop_mode = True
|
|
953
954
|
|
|
954
955
|
def on_close():
|
|
@@ -968,8 +969,6 @@ class TcpServer:
|
|
|
968
969
|
memory_budget=self.memory_budget,
|
|
969
970
|
)
|
|
970
971
|
registered = True
|
|
971
|
-
if not self.auth_required and not self.require_handshake:
|
|
972
|
-
protocol._notify_connected()
|
|
973
972
|
except Exception as error:
|
|
974
973
|
if protocol is not None:
|
|
975
974
|
protocol.handle_connection_lost()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|