Don't show connection resets

merge-requests/30/head
Bob Mottram 2021-05-20 13:44:49 +01:00
parent 2c348f3edf
commit e5111dd126
1 changed files with 2 additions and 1 deletions

View File

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