diff --git a/gunicorn/util.py b/gunicorn/util.py index e637de51..ee5bc803 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -104,13 +104,8 @@ def read_partial(sock, length): return data def write(sock, data): - try: - sock.sendall(data) - except socket.error, e: - if e[0] not in (errno.EWOULDBLOCK, errno.EAGAIN): - pass - raise - + sock.sendall(data) + def write_nonblock(sock, data): timeout = sock.gettimeout() if timeout != 0.0: