mirror of https://gitlab.com/bashrc2/epicyon
Don't show connection resets
parent
2c348f3edf
commit
e5111dd126
|
@ -14759,6 +14759,7 @@ class EpicyonServer(ThreadingHTTPServer):
|
||||||
# surpress connection reset errors
|
# surpress connection reset errors
|
||||||
cls, e = sys.exc_info()[:2]
|
cls, e = sys.exc_info()[:2]
|
||||||
if cls is ConnectionResetError:
|
if cls is ConnectionResetError:
|
||||||
|
if e.errno != errno.ECONNRESET:
|
||||||
print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e))
|
print('ERROR: (EpicyonServer) ' + str(cls) + ", " + str(e))
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue