python-socketio 5.16.1__py3-none-any.whl → 5.16.2__py3-none-any.whl
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.
- {python_socketio-5.16.1.dist-info → python_socketio-5.16.2.dist-info}/METADATA +2 -2
- {python_socketio-5.16.1.dist-info → python_socketio-5.16.2.dist-info}/RECORD +7 -7
- {python_socketio-5.16.1.dist-info → python_socketio-5.16.2.dist-info}/WHEEL +1 -1
- socketio/async_server.py +5 -0
- socketio/server.py +5 -0
- {python_socketio-5.16.1.dist-info → python_socketio-5.16.2.dist-info}/licenses/LICENSE +0 -0
- {python_socketio-5.16.1.dist-info → python_socketio-5.16.2.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-socketio
|
|
3
|
-
Version: 5.16.
|
|
3
|
+
Version: 5.16.2
|
|
4
4
|
Summary: Socket.IO server and client for Python
|
|
5
5
|
Author-email: Miguel Grinberg <miguel.grinberg@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -14,7 +14,7 @@ Requires-Python: >=3.8
|
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
16
|
Requires-Dist: bidict>=0.21.0
|
|
17
|
-
Requires-Dist: python-engineio>=4.
|
|
17
|
+
Requires-Dist: python-engineio>=4.13.2
|
|
18
18
|
Provides-Extra: client
|
|
19
19
|
Requires-Dist: requests>=2.21.0; extra == "client"
|
|
20
20
|
Requires-Dist: websocket-client>=0.54.0; extra == "client"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
python_socketio-5.16.
|
|
1
|
+
python_socketio-5.16.2.dist-info/licenses/LICENSE,sha256=yel9Pbwfu82094CLKCzWRtuIev9PUxP-a76NTDFAWpw,1082
|
|
2
2
|
socketio/__init__.py,sha256=DXxtwPIqHFIqV4BGTgJ86OvCXD6Mth3PxBYhFoJ1_7g,1269
|
|
3
3
|
socketio/admin.py,sha256=Ag0fz2QRVq5mprjkBe9txNjGPvQEpBai6-VJ-rJsxmA,16260
|
|
4
4
|
socketio/asgi.py,sha256=NaJtYhOswVVcwHU0zcMM5H5TrSzXq9K-CAYaeSNTZRY,2192
|
|
@@ -9,7 +9,7 @@ socketio/async_manager.py,sha256=G7TLqCDVozbHt0ODG3jU09h1ku6ahk87_Sz4Cm5tL90,451
|
|
|
9
9
|
socketio/async_namespace.py,sha256=BxSUs_iQzPHFo6JyoRZm2Yy0uRyizvS2PMCIzsVzk_o,12043
|
|
10
10
|
socketio/async_pubsub_manager.py,sha256=UwU_i_cDvJ4vRzB6RnefEFuWKoiL35WgXHR0y2-CXas,12474
|
|
11
11
|
socketio/async_redis_manager.py,sha256=S_S09BCeyr8N_Ma6ickbDuKESvPaKSYTSXAjd73OMPo,7848
|
|
12
|
-
socketio/async_server.py,sha256=
|
|
12
|
+
socketio/async_server.py,sha256=nU-QMFiTk1i2WrLaxiUGJuHmfFnXPvpxHhMFcqC2JuM,36968
|
|
13
13
|
socketio/async_simple_client.py,sha256=eZUgU9fz7c9lXhsbm4Ln95dinM9zxT3Ps2sML4HtT6Y,9016
|
|
14
14
|
socketio/base_client.py,sha256=LJzYynrxPuId7xbHAWiTPFlEAROQCLi8cOmiIDuc1Lk,11673
|
|
15
15
|
socketio/base_manager.py,sha256=w4JZrUSpQ8Unsy0ZwQmEEXwvSzeCGT3AfR0ma0Tmczo,6116
|
|
@@ -26,11 +26,11 @@ socketio/namespace.py,sha256=80y8BN2FFlHK8JKF1TirWvvE4pn9FkGKk14IVFkCLEs,9488
|
|
|
26
26
|
socketio/packet.py,sha256=N7jEjcqOUg2PPEooCoEglxVxhjRqJF-FZCPyDF-UDKQ,7120
|
|
27
27
|
socketio/pubsub_manager.py,sha256=3xUqRnHiFVf_YI68OWRakJTa2LGHPpyMZNSAQN43GZY,11775
|
|
28
28
|
socketio/redis_manager.py,sha256=_I8n5GJcYWlSnmYZnADDfvn4FP2BMfllHqN4JYuuYeE,8923
|
|
29
|
-
socketio/server.py,sha256=
|
|
29
|
+
socketio/server.py,sha256=cNDOBJ8u01D0ttZmcrUM0vN-1rT8Z1D_-oMMOnEWGWU,35341
|
|
30
30
|
socketio/simple_client.py,sha256=aSMTRO8LHBAWO2IV9uetL6_zwZgPGR-ts73x_4k3624,8434
|
|
31
31
|
socketio/tornado.py,sha256=R82JCqz-E1ibZAQX708h7FX3sguCHQ1OLYpnMag-LY8,295
|
|
32
32
|
socketio/zmq_manager.py,sha256=PkY5aP7-JesCJjumRht90pf3dqLGZV1WrGZ5lA8jQ-Y,4232
|
|
33
|
-
python_socketio-5.16.
|
|
34
|
-
python_socketio-5.16.
|
|
35
|
-
python_socketio-5.16.
|
|
36
|
-
python_socketio-5.16.
|
|
33
|
+
python_socketio-5.16.2.dist-info/METADATA,sha256=HQPRrjFBGlBfPidsgpLOckqXI6rW4OhwoO5gIydq9Gs,3281
|
|
34
|
+
python_socketio-5.16.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
35
|
+
python_socketio-5.16.2.dist-info/top_level.txt,sha256=xWd-HVUanhys_VzQQTRTRZBX8W448ayFytYf1Zffivs,9
|
|
36
|
+
python_socketio-5.16.2.dist-info/RECORD,,
|
socketio/async_server.py
CHANGED
|
@@ -427,6 +427,8 @@ class AsyncServer(base_server.BaseServer):
|
|
|
427
427
|
if delete_it:
|
|
428
428
|
self.logger.info('Disconnecting %s [%s]', sid, namespace)
|
|
429
429
|
eio_sid = self.manager.pre_disconnect(sid, namespace=namespace)
|
|
430
|
+
if eio_sid in self._binary_packet:
|
|
431
|
+
del self._binary_packet[eio_sid]
|
|
430
432
|
await self._send_packet(eio_sid, self.packet_class(
|
|
431
433
|
packet.DISCONNECT, namespace=namespace))
|
|
432
434
|
await self._trigger_event('disconnect', namespace, sid,
|
|
@@ -702,6 +704,9 @@ class AsyncServer(base_server.BaseServer):
|
|
|
702
704
|
pkt.data)
|
|
703
705
|
elif pkt.packet_type == packet.BINARY_EVENT or \
|
|
704
706
|
pkt.packet_type == packet.BINARY_ACK:
|
|
707
|
+
if not self.manager.sid_from_eio_sid(eio_sid,
|
|
708
|
+
pkt.namespace or '/'):
|
|
709
|
+
raise ValueError('Unexpected binary packet')
|
|
705
710
|
self._binary_packet[eio_sid] = pkt
|
|
706
711
|
elif pkt.packet_type == packet.CONNECT_ERROR:
|
|
707
712
|
raise ValueError('Unexpected CONNECT_ERROR packet.')
|
socketio/server.py
CHANGED
|
@@ -402,6 +402,8 @@ class Server(base_server.BaseServer):
|
|
|
402
402
|
if delete_it:
|
|
403
403
|
self.logger.info('Disconnecting %s [%s]', sid, namespace)
|
|
404
404
|
eio_sid = self.manager.pre_disconnect(sid, namespace=namespace)
|
|
405
|
+
if eio_sid in self._binary_packet:
|
|
406
|
+
del self._binary_packet[eio_sid]
|
|
405
407
|
self._send_packet(eio_sid, self.packet_class(
|
|
406
408
|
packet.DISCONNECT, namespace=namespace))
|
|
407
409
|
self._trigger_event('disconnect', namespace, sid,
|
|
@@ -663,6 +665,9 @@ class Server(base_server.BaseServer):
|
|
|
663
665
|
self._handle_ack(eio_sid, pkt.namespace, pkt.id, pkt.data)
|
|
664
666
|
elif pkt.packet_type == packet.BINARY_EVENT or \
|
|
665
667
|
pkt.packet_type == packet.BINARY_ACK:
|
|
668
|
+
if not self.manager.sid_from_eio_sid(eio_sid,
|
|
669
|
+
pkt.namespace or '/'):
|
|
670
|
+
raise ValueError('Unexpected binary packet')
|
|
666
671
|
self._binary_packet[eio_sid] = pkt
|
|
667
672
|
elif pkt.packet_type == packet.CONNECT_ERROR:
|
|
668
673
|
raise ValueError('Unexpected CONNECT_ERROR packet.')
|
|
File without changes
|
|
File without changes
|