python-engineio 4.12.2__py3-none-any.whl → 4.12.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 +6 -0
- engineio/async_server.py +2 -2
- engineio/base_server.py +4 -1
- engineio/client.py +9 -0
- engineio/server.py +2 -2
- {python_engineio-4.12.2.dist-info → python_engineio-4.12.3.dist-info}/METADATA +1 -1
- {python_engineio-4.12.2.dist-info → python_engineio-4.12.3.dist-info}/RECORD +10 -10
- {python_engineio-4.12.2.dist-info → python_engineio-4.12.3.dist-info}/WHEEL +0 -0
- {python_engineio-4.12.2.dist-info → python_engineio-4.12.3.dist-info}/licenses/LICENSE +0 -0
- {python_engineio-4.12.2.dist-info → python_engineio-4.12.3.dist-info}/top_level.txt +0 -0
engineio/async_client.py
CHANGED
|
@@ -214,6 +214,12 @@ class AsyncClient(base_client.BaseClient):
|
|
|
214
214
|
|
|
215
215
|
async def _reset(self):
|
|
216
216
|
super()._reset()
|
|
217
|
+
while True: # pragma: no cover
|
|
218
|
+
try:
|
|
219
|
+
self.queue.get_nowait()
|
|
220
|
+
self.queue.task_done()
|
|
221
|
+
except self.queue_empty:
|
|
222
|
+
break
|
|
217
223
|
if not self.external_http: # pragma: no cover
|
|
218
224
|
if self.http and not self.http.closed:
|
|
219
225
|
await self.http.close()
|
engineio/async_server.py
CHANGED
|
@@ -56,8 +56,8 @@ class AsyncServer(base_server.BaseServer):
|
|
|
56
56
|
:param cors_allowed_origins: Origin or list of origins that are allowed to
|
|
57
57
|
connect to this server. Only the same origin
|
|
58
58
|
is allowed by default. Set this argument to
|
|
59
|
-
``'*'`` to allow all origins, or
|
|
60
|
-
disable CORS handling.
|
|
59
|
+
``'*'`` or ``['*']`` to allow all origins, or
|
|
60
|
+
to ``[]`` to disable CORS handling.
|
|
61
61
|
:param cors_credentials: Whether credentials (cookies, authentication) are
|
|
62
62
|
allowed in requests to this server.
|
|
63
63
|
:param logger: To enable logging set to ``True`` or pass a logger object to
|
engineio/base_server.py
CHANGED
|
@@ -310,7 +310,10 @@ class BaseServer:
|
|
|
310
310
|
is_allowed = self.cors_allowed_origins(origin)
|
|
311
311
|
allowed_origins = [origin] if is_allowed else []
|
|
312
312
|
else:
|
|
313
|
-
|
|
313
|
+
if '*' in self.cors_allowed_origins:
|
|
314
|
+
allowed_origins = None
|
|
315
|
+
else:
|
|
316
|
+
allowed_origins = self.cors_allowed_origins
|
|
314
317
|
return allowed_origins
|
|
315
318
|
|
|
316
319
|
def _cors_headers(self, environ):
|
engineio/client.py
CHANGED
|
@@ -173,6 +173,15 @@ class Client(base_client.BaseClient):
|
|
|
173
173
|
"""Create an event object."""
|
|
174
174
|
return threading.Event(*args, **kwargs)
|
|
175
175
|
|
|
176
|
+
def _reset(self):
|
|
177
|
+
super()._reset()
|
|
178
|
+
while True: # pragma: no cover
|
|
179
|
+
try:
|
|
180
|
+
self.queue.get_nowait()
|
|
181
|
+
self.queue.task_done()
|
|
182
|
+
except self.queue_empty:
|
|
183
|
+
break
|
|
184
|
+
|
|
176
185
|
def _connect_polling(self, url, headers, engineio_path):
|
|
177
186
|
"""Establish a long-polling connection to the Engine.IO server."""
|
|
178
187
|
if requests is None: # pragma: no cover
|
engineio/server.py
CHANGED
|
@@ -54,8 +54,8 @@ class Server(base_server.BaseServer):
|
|
|
54
54
|
:param cors_allowed_origins: Origin or list of origins that are allowed to
|
|
55
55
|
connect to this server. Only the same origin
|
|
56
56
|
is allowed by default. Set this argument to
|
|
57
|
-
``'*'`` to allow all origins, or
|
|
58
|
-
disable CORS handling.
|
|
57
|
+
``'*'`` or ``['*']`` to allow all origins, or
|
|
58
|
+
to ``[]`` to disable CORS handling.
|
|
59
59
|
:param cors_credentials: Whether credentials (cookies, authentication) are
|
|
60
60
|
allowed in requests to this server. The default
|
|
61
61
|
is ``True``.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
engineio/__init__.py,sha256=0R2PY1EXu3sicP7mkA0_QxEVGRlFlgvsxfhByqREE1A,481
|
|
2
|
-
engineio/async_client.py,sha256=
|
|
3
|
-
engineio/async_server.py,sha256=
|
|
2
|
+
engineio/async_client.py,sha256=EW06yaSq05c6TteBxeFfMZQF8v6jQ_MMZoqqzjiU0hM,29780
|
|
3
|
+
engineio/async_server.py,sha256=skPqa2vMOrnC_Tavl5J--r8GSlnQw4camVNnJ52v6N8,27425
|
|
4
4
|
engineio/async_socket.py,sha256=nHY0DPPk0FtI9djUnQWtzZ3ce2OD184Tu-Dop7JLg9I,10715
|
|
5
5
|
engineio/base_client.py,sha256=oOdq-zR7kg8QpvAGti0zBIiFBQGyEELwVMZNtcoJ2ig,5827
|
|
6
|
-
engineio/base_server.py,sha256=
|
|
6
|
+
engineio/base_server.py,sha256=tTCqc65Vzf-0Be1uunt1FuGxPOvcpOUCxnT5V2mZCWo,14763
|
|
7
7
|
engineio/base_socket.py,sha256=sQqbNSfGhMQG3xzwar6IXMal28C7Q5TIAQRGp74Wt2o,399
|
|
8
|
-
engineio/client.py,sha256=
|
|
8
|
+
engineio/client.py,sha256=5CzbWX-ghMByOhXVjzAeBaN8h1yW-TL5mbBVzf-Ywpc,27577
|
|
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
|
|
12
12
|
engineio/packet.py,sha256=YO3gmeKUoKyIsUq2e1z7Zifr5PGeS3gnaCeqR7wj5hQ,3198
|
|
13
13
|
engineio/payload.py,sha256=GIWu0Vnay4WNZlDxHqVgP34tKTBXX58OArJ-mO5zD3E,1539
|
|
14
|
-
engineio/server.py,sha256=
|
|
14
|
+
engineio/server.py,sha256=NTXGILAY6JbO1luITR43QsTPrT3gFR_3bScOmfPV6Uc,22970
|
|
15
15
|
engineio/socket.py,sha256=Oaw1E7ZDyOCaS7KV151g1u9rqOf1JJHh5gttEU0cSeA,10342
|
|
16
16
|
engineio/static_files.py,sha256=pwez9LQFaSQXMbtI0vLyD6UDiokQ4rNfmRYgVLKOthc,2064
|
|
17
17
|
engineio/async_drivers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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=mbVHs1mECfzFSNv33uigkpTBtNPT0u49k5zaybewdIo,5893
|
|
27
|
-
python_engineio-4.12.
|
|
28
|
-
python_engineio-4.12.
|
|
29
|
-
python_engineio-4.12.
|
|
30
|
-
python_engineio-4.12.
|
|
31
|
-
python_engineio-4.12.
|
|
27
|
+
python_engineio-4.12.3.dist-info/licenses/LICENSE,sha256=yel9Pbwfu82094CLKCzWRtuIev9PUxP-a76NTDFAWpw,1082
|
|
28
|
+
python_engineio-4.12.3.dist-info/METADATA,sha256=QNSOyyDMFyuGJzIcbqZ6BPKnl7PoyrfjbDtbxlrjcHI,2221
|
|
29
|
+
python_engineio-4.12.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
+
python_engineio-4.12.3.dist-info/top_level.txt,sha256=u8PmNisCZLwRYcWrNLe9wutQ2tt4zNi8IH362c-HWuA,9
|
|
31
|
+
python_engineio-4.12.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|