Add support for ConnectionResetError in login
This commit is contained in:
@ -262,6 +262,10 @@ class RequestHandler(socketserver.BaseRequestHandler):
|
||||
#Client gone and came back, bad idea.
|
||||
logging.warning('Broken pipe, closing socket')
|
||||
return False
|
||||
except ConnectionResetError:
|
||||
#Other end closed socket, we're ok
|
||||
logging.warning('Connection reset by peer')
|
||||
return False
|
||||
|
||||
def handle(self):
|
||||
logging.info('Connected to ' + str(self.client_address[0]))
|
||||
|
||||
Reference in New Issue
Block a user