Ignore connection resets

merge-requests/8/head
Bob Mottram 2020-08-24 20:48:35 +01:00
parent 9173ad475a
commit 26c74f91cb
1 changed files with 5 additions and 5 deletions

View File

@ -8881,11 +8881,11 @@ class EpicyonServer(ThreadingHTTPServer):
def handle_error(self, request, client_address):
# surpress connection reset errors
cls, e = sys.exc_info()[:2]
print('handle_error: ' + str(cls) + ", " + str(e))
# if cls is socket.error or cls is ConnectionResetError:
# pass
# else:
return HTTPServer.handle_error(self, request, client_address)
if cls is socket.error or cls is ConnectionResetError:
print('ERROR: ' + str(cls) + ", " + str(e))
pass
else:
return HTTPServer.handle_error(self, request, client_address)
def runPostsQueue(baseDir: str, sendThreads: [], debug: bool) -> None: