Ignore client connection resets

This commit is contained in:
Klaus-Uwe Mitterer 2017-06-23 21:55:36 +02:00
parent d82ec2a995
commit b0cf187d0c

View file

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