feat(backend_server.py): handle all other client Exceptions in _handle_connection()

This commit is contained in:
2025-09-22 21:57:43 +02:00
parent f0eeeb79a1
commit 6f5fa33a12

View File

@@ -171,9 +171,13 @@ class BackendServer:
client.outbound = client.outbound[sent:]
# TODO: wait for ACK from client
except ConnectionResetError as e:
self.logger.error(f"Connection reset by {client}, disconnect: {e}")
self._disconnect(client)
except Exception as e:
self.logger.error(f"Connection error for {client}: {e}")
self._disconnect(client)
def run(self) -> None:
"""Start the backend server."""