python-engineio 4.13.2__py3-none-any.whl → 4.13.3__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.
- engineio/async_client.py +2 -2
- engineio/client.py +2 -2
- {python_engineio-4.13.2.dist-info → python_engineio-4.13.3.dist-info}/METADATA +1 -1
- {python_engineio-4.13.2.dist-info → python_engineio-4.13.3.dist-info}/RECORD +7 -7
- {python_engineio-4.13.2.dist-info → python_engineio-4.13.3.dist-info}/WHEEL +0 -0
- {python_engineio-4.13.2.dist-info → python_engineio-4.13.3.dist-info}/licenses/LICENSE +0 -0
- {python_engineio-4.13.2.dist-info → python_engineio-4.13.3.dist-info}/top_level.txt +0 -0
engineio/async_client.py
CHANGED
|
@@ -571,7 +571,7 @@ class AsyncClient(base_client.BaseClient):
|
|
|
571
571
|
|
|
572
572
|
async def _read_loop_websocket(self):
|
|
573
573
|
"""Read packets from the Engine.IO WebSocket connection."""
|
|
574
|
-
while self.state == 'connected':
|
|
574
|
+
while self.state == 'connected' and self.write_loop_task:
|
|
575
575
|
p = None
|
|
576
576
|
try:
|
|
577
577
|
p = await asyncio.wait_for(
|
|
@@ -672,7 +672,6 @@ class AsyncClient(base_client.BaseClient):
|
|
|
672
672
|
if r.status < 200 or r.status >= 300:
|
|
673
673
|
self.logger.warning('Unexpected status code %s in server '
|
|
674
674
|
'response, aborting', r.status)
|
|
675
|
-
self.write_loop_task = None
|
|
676
675
|
break
|
|
677
676
|
else:
|
|
678
677
|
# websocket
|
|
@@ -690,3 +689,4 @@ class AsyncClient(base_client.BaseClient):
|
|
|
690
689
|
'aborting')
|
|
691
690
|
break
|
|
692
691
|
self.logger.info('Exiting write loop task')
|
|
692
|
+
self.write_loop_task = None
|
engineio/client.py
CHANGED
|
@@ -521,7 +521,7 @@ class Client(base_client.BaseClient):
|
|
|
521
521
|
|
|
522
522
|
def _read_loop_websocket(self):
|
|
523
523
|
"""Read packets from the Engine.IO WebSocket connection."""
|
|
524
|
-
while self.state == 'connected':
|
|
524
|
+
while self.state == 'connected' and self.write_loop_task:
|
|
525
525
|
p = None
|
|
526
526
|
try:
|
|
527
527
|
p = self.ws.recv()
|
|
@@ -616,7 +616,6 @@ class Client(base_client.BaseClient):
|
|
|
616
616
|
if r.status_code < 200 or r.status_code >= 300:
|
|
617
617
|
self.logger.warning('Unexpected status code %s in server '
|
|
618
618
|
'response, aborting', r.status_code)
|
|
619
|
-
self.write_loop_task = None
|
|
620
619
|
break
|
|
621
620
|
else:
|
|
622
621
|
# websocket
|
|
@@ -634,3 +633,4 @@ class Client(base_client.BaseClient):
|
|
|
634
633
|
'WebSocket connection was closed, aborting')
|
|
635
634
|
break
|
|
636
635
|
self.logger.info('Exiting write loop task')
|
|
636
|
+
self.write_loop_task = None
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
engineio/__init__.py,sha256=0R2PY1EXu3sicP7mkA0_QxEVGRlFlgvsxfhByqREE1A,481
|
|
2
|
-
engineio/async_client.py,sha256=
|
|
2
|
+
engineio/async_client.py,sha256=EsjojCmw1c6hJW7iyeR09QV0SvpbETO8btKGGgugaxM,29989
|
|
3
3
|
engineio/async_server.py,sha256=7oQClUwwSiPlFFUSEBeE6VuOYnbK2z8FCmRqeWoiiVE,27558
|
|
4
4
|
engineio/async_socket.py,sha256=2agIDyicauuHuDHf_2WtUWreq1BP5iu5FQu9tSHWdtY,10827
|
|
5
5
|
engineio/base_client.py,sha256=oOdq-zR7kg8QpvAGti0zBIiFBQGyEELwVMZNtcoJ2ig,5827
|
|
6
6
|
engineio/base_server.py,sha256=tTCqc65Vzf-0Be1uunt1FuGxPOvcpOUCxnT5V2mZCWo,14763
|
|
7
7
|
engineio/base_socket.py,sha256=PWiJC1msNo-0ctlP3JAwWsngKvnYM-ZjS6B6zzfu-eM,420
|
|
8
|
-
engineio/client.py,sha256
|
|
8
|
+
engineio/client.py,sha256=I9wx9-JSiE1BMpULAw9-BGlpFy2Tvzl_3qshvs2ZkW4,27797
|
|
9
9
|
engineio/exceptions.py,sha256=FyuMb5qhX9CUYP3fEoe1m-faU96ApdQTSbblaaoo8LA,292
|
|
10
10
|
engineio/json.py,sha256=SG5FTojqd1ix6u0dKXJsZVqqdYioZLO4S2GPL7BKl3U,405
|
|
11
11
|
engineio/middleware.py,sha256=5NKBXz-ftuFErUB_V9IDvRHaSOsjhtW-NnuJtquB1nc,3750
|
|
@@ -24,8 +24,8 @@ engineio/async_drivers/gevent_uwsgi.py,sha256=m6ay5dov9FDQl0fbeiKeE-Orh5LiF6zLlY
|
|
|
24
24
|
engineio/async_drivers/sanic.py,sha256=GYX8YWR1GbRm-GkMTAQkfkWbY12MOT1IV2DzH0Xx8Ns,4495
|
|
25
25
|
engineio/async_drivers/threading.py,sha256=ywmG59d4H6OHZjKarBN97-9BHEsRxFEz9YN-E9QAu_I,463
|
|
26
26
|
engineio/async_drivers/tornado.py,sha256=v9uuGk8_HS6DjhoEKXfjHpki1FnydN4wi7eyBMsUTJA,5908
|
|
27
|
-
python_engineio-4.13.
|
|
28
|
-
python_engineio-4.13.
|
|
29
|
-
python_engineio-4.13.
|
|
30
|
-
python_engineio-4.13.
|
|
31
|
-
python_engineio-4.13.
|
|
27
|
+
python_engineio-4.13.3.dist-info/licenses/LICENSE,sha256=yel9Pbwfu82094CLKCzWRtuIev9PUxP-a76NTDFAWpw,1082
|
|
28
|
+
python_engineio-4.13.3.dist-info/METADATA,sha256=oQ8jzRPsSix2GfT5U-uI7nViMdjeO8Zas3PsDxZhdcc,2314
|
|
29
|
+
python_engineio-4.13.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
30
|
+
python_engineio-4.13.3.dist-info/top_level.txt,sha256=u8PmNisCZLwRYcWrNLe9wutQ2tt4zNi8IH362c-HWuA,9
|
|
31
|
+
python_engineio-4.13.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|