satori-python-server 0.17.0__tar.gz → 0.17.1__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.
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/PKG-INFO +1 -1
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/pyproject.toml +1 -1
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/src/satori/server/__init__.py +2 -2
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/src/satori/server/connection.py +1 -1
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/.mina/server.toml +0 -0
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/LICENSE +0 -0
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/README.md +0 -0
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/src/satori/server/adapter.py +0 -0
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/src/satori/server/formdata.py +0 -0
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/src/satori/server/model.py +0 -0
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/src/satori/server/route.py +0 -0
- {satori_python_server-0.17.0 → satori_python_server-0.17.1}/src/satori/server/utils.py +0 -0
|
@@ -264,7 +264,7 @@ class Server(Service, RouterMixin):
|
|
|
264
264
|
{"op": Opcode.READY, "body": {"logins": [lo.dump() for lo in logins], "proxy_urls": proxy_urls}}
|
|
265
265
|
)
|
|
266
266
|
self.connections.append(connection)
|
|
267
|
-
logger.debug(f"New connection: {id(connection)}")
|
|
267
|
+
logger.debug(f"New connection: {id(connection):x}")
|
|
268
268
|
heartbeat_task = asyncio.create_task(connection.heartbeat())
|
|
269
269
|
close_task = asyncio.create_task(connection.close_signal.wait())
|
|
270
270
|
try:
|
|
@@ -281,7 +281,7 @@ class Server(Service, RouterMixin):
|
|
|
281
281
|
await any_completed(heartbeat_task, close_task)
|
|
282
282
|
finally:
|
|
283
283
|
await connection.connection_closed()
|
|
284
|
-
logger.debug(f"Connection closed: {id(connection)}")
|
|
284
|
+
logger.debug(f"Connection closed: {id(connection):x}")
|
|
285
285
|
heartbeat_task.cancel()
|
|
286
286
|
close_task.cancel()
|
|
287
287
|
self.connections.remove(connection)
|
|
@@ -29,7 +29,7 @@ class WebsocketConnection:
|
|
|
29
29
|
continue
|
|
30
30
|
await self.connection.send_text(encode({"op": Opcode.PONG}))
|
|
31
31
|
except asyncio.TimeoutError:
|
|
32
|
-
logger.warning(f"Connection {id(self)} heartbeat timeout, closing connection.")
|
|
32
|
+
logger.warning(f"Connection {id(self):x} heartbeat timeout, closing connection.")
|
|
33
33
|
await self.connection.close()
|
|
34
34
|
await self.connection_closed()
|
|
35
35
|
break
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|