From 39628177e89070eb96c67f908ebffefb0e6f4e59 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Fri, 25 Oct 2019 13:54:00 +0200 Subject: [PATCH] Connection reset handling. --- slave.py | 3 +++ 1 file changed, 3 insertions(+) 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()