mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
retry on first EPIPE
This commit is contained in:
parent
cf7322ca43
commit
096da6ee39
@ -117,6 +117,8 @@ def write(sock, data):
|
|||||||
except socket.error, e:
|
except socket.error, e:
|
||||||
if e[0] in (errno.EWOULDBLOCK, errno.EAGAIN):
|
if e[0] in (errno.EWOULDBLOCK, errno.EAGAIN):
|
||||||
break
|
break
|
||||||
|
if e[0] == errno.EPIPE and i == 0:
|
||||||
|
continue
|
||||||
raise
|
raise
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user