mirror of https://gitlab.com/bashrc2/epicyon
Don't show connection resets
parent
2c348f3edf
commit
e5111dd126
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue