feat(backend_server.py): handle all other client Exceptions in _handle_connection()
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user