From 6badf22041bb726782b6676e341be63c52c1c36c Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 25 Feb 2010 20:01:25 +0100 Subject: [PATCH] just send --- gunicorn/util.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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: