Add support for ConnectionResetError in login

This commit is contained in:
2024-07-02 19:17:48 +02:00
parent b64e270247
commit 450c46ff20

View File

@ -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]))