Skip to content
Snippets Groups Projects
Commit f75f3277 authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Catch socket error in server.

parent 96d89030
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ class RequestHandler(AsyncBase, asyncore.dispatcher):
elif chunk == '\n' and buf[-1] == '\r':
break
buf += chunk
except SocketError:
except SocketError, socket.error:
self.log.info('client %s:%d disconnected or socket is broken.' \
% self.address)
self.server.disconnect_client(self.address)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment