diff --git a/gunicorn/util.py b/gunicorn/util.py index fb0e284b..1e79951b 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -117,6 +117,8 @@ def write(sock, data): except socket.error, e: if e[0] in (errno.EWOULDBLOCK, errno.EAGAIN): break + if e[0] == errno.EPIPE and i == 0: + continue raise i += 1