socketflow 0.2.2__tar.gz → 0.2.4__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.4}/PKG-INFO +1 -1
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/__init__.py +1 -1
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/server_side/server.py +7 -8
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow.egg-info/PKG-INFO +1 -1
- {socketflow-0.2.2 → socketflow-0.2.4}/README.md +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/setup.cfg +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/setup.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/client_side/__init__.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/client_side/client.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/__init__.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/blueprint.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/compression.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/dispatcher.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/event.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/event_loop.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/exceptions.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/logs.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/message_handler.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/message_manager.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/metrics.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/protocol.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/global_side/transport.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow/server_side/__init__.py +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow.egg-info/SOURCES.txt +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow.egg-info/dependency_links.txt +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow.egg-info/not-zip-safe +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/socketflow.egg-info/requires.txt +0 -0
- {socketflow-0.2.2 → socketflow-0.2.4}/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,8 @@ 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 and self.require_handshake:
|
|
950
|
+
protocol._send_handshake_ok()
|
|
952
951
|
protocol._event_loop_mode = True
|
|
953
952
|
|
|
954
953
|
def on_close():
|
|
@@ -968,7 +967,7 @@ class TcpServer:
|
|
|
968
967
|
memory_budget=self.memory_budget,
|
|
969
968
|
)
|
|
970
969
|
registered = True
|
|
971
|
-
if not self.auth_required
|
|
970
|
+
if not self.auth_required:
|
|
972
971
|
protocol._notify_connected()
|
|
973
972
|
except Exception as error:
|
|
974
973
|
if protocol is not None:
|
|
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
|