forked from indymedia/epicyon
Ignore connection resets
parent
9173ad475a
commit
26c74f91cb
|
@ -8881,10 +8881,10 @@ class EpicyonServer(ThreadingHTTPServer):
|
||||||
def handle_error(self, request, client_address):
|
def handle_error(self, request, client_address):
|
||||||
# surpress connection reset errors
|
# surpress connection reset errors
|
||||||
cls, e = sys.exc_info()[:2]
|
cls, e = sys.exc_info()[:2]
|
||||||
print('handle_error: ' + str(cls) + ", " + str(e))
|
if cls is socket.error or cls is ConnectionResetError:
|
||||||
# if cls is socket.error or cls is ConnectionResetError:
|
print('ERROR: ' + str(cls) + ", " + str(e))
|
||||||
# pass
|
pass
|
||||||
# else:
|
else:
|
||||||
return HTTPServer.handle_error(self, request, client_address)
|
return HTTPServer.handle_error(self, request, client_address)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue