From b0cf187d0c91572cf8904209f3b677c683f52a07 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Fri, 23 Jun 2017 21:55:36 +0200 Subject: [PATCH] Ignore client connection resets --- servertools/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servertools/__init__.py b/servertools/__init__.py index 37e79e0..99bc119 100644 --- a/servertools/__init__.py +++ b/servertools/__init__.py @@ -173,6 +173,8 @@ class TCPHandler(socketserver.StreamRequestHandler): if response: self.sendString(response) logger("Sent to %s: %s" % (remote, response), syslog.LOG_DEBUG) + except ConnectionResetError: + logger("Connection reset by %s before we could reply." % remote, LOG_DEBUG) except Exception as e: logger(e, syslog.LOG_CRIT)