mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
addd errno.EWOULDBLOCK for accept
This commit is contained in:
parent
ce51439299
commit
09bcc05c5c
@ -126,7 +126,8 @@ class Worker(object):
|
||||
spinner = (spinner+1) % 2
|
||||
self._fchmod(spinner)
|
||||
except socket.error, e:
|
||||
if e[0] in [errno.EAGAIN, errno.ECONNABORTED]:
|
||||
if e[0] in [errno.EAGAIN, errno.ECONNABORTED,
|
||||
errno.EWOULDBLOCK]:
|
||||
break # Uh oh!
|
||||
raise
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user