mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
ignore connection reset
This commit is contained in:
parent
0a3438f963
commit
7f36bc1bbd
@ -27,10 +27,13 @@ class AsyncWorker(Worker):
|
|||||||
while self.handle_request(client, addr):
|
while self.handle_request(client, addr):
|
||||||
pass
|
pass
|
||||||
except socket.error, e:
|
except socket.error, e:
|
||||||
if e[0] != errno.EPIPE:
|
if e[0] not in (errno.EPIPE, errno.ECONNRESET):
|
||||||
self.log.exception("Error processing request.")
|
self.log.exception("Error processing request.")
|
||||||
else:
|
else:
|
||||||
self.log.warn("Ignoring EPIPE")
|
if e[0] == errno.ECONNRESET:
|
||||||
|
self.log.warn("Ignoring connection reset")
|
||||||
|
else:
|
||||||
|
self.log.warn("Ignoring EPIPE")
|
||||||
except UnexpectedEOF:
|
except UnexpectedEOF:
|
||||||
self.log.exception("Client closed the connection unexpectedly.")
|
self.log.exception("Client closed the connection unexpectedly.")
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user