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.
|
#Client gone and came back, bad idea.
|
||||||
logging.warning('Broken pipe, closing socket')
|
logging.warning('Broken pipe, closing socket')
|
||||||
return False
|
return False
|
||||||
|
except ConnectionResetError:
|
||||||
|
#Other end closed socket, we're ok
|
||||||
|
logging.warning('Connection reset by peer')
|
||||||
|
return False
|
||||||
|
|
||||||
def handle(self):
|
def handle(self):
|
||||||
logging.info('Connected to ' + str(self.client_address[0]))
|
logging.info('Connected to ' + str(self.client_address[0]))
|
||||||
|
|||||||
Reference in New Issue
Block a user