From e5111dd12657d16104b038e628580727b00a46fb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 20 May 2021 13:44:49 +0100 Subject: [PATCH] Don't show connection resets --- daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 3f7c00072..b939ab283 100644 --- a/daemon.py +++ b/daemon.py @@ -14759,7 +14759,8 @@ class EpicyonServer(ThreadingHTTPServer): # surpress connection reset errors cls, e = sys.exc_info()[:2] if cls is ConnectionResetError: - print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e)) + if e.errno != errno.ECONNRESET: + print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e)) pass else: return HTTPServer.handle_error(self, request, client_address)