mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
make sure to catch EPIPE and ECONNRESET error
This commit is contained in:
parent
9fb0d9669c
commit
6f726e0ec9
@ -47,6 +47,8 @@ class AsyncWorker(base.Worker):
|
||||
self.log.debug("Ignored premature client disconnection. %s", e)
|
||||
except StopIteration as e:
|
||||
self.log.debug("Closing connection. %s", e)
|
||||
except socket.error:
|
||||
raise # pass to next try-except level
|
||||
except Exception as e:
|
||||
self.handle_error(req, client, addr, e)
|
||||
except socket.error as e:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user