diff --git a/slave.py b/slave.py index 61bd60e..3919bd2 100644 --- a/slave.py +++ b/slave.py @@ -95,6 +95,9 @@ while True: except BrokenPipeError: eprint("connection from {} has broken a pipe.".format(client_address)) conn.close() + except ConnectionResetError: + eprint("connection from {} reset.".format(client_address)) + conn.close() finally: # Clean up the connection conn.close()