From 522933416c4c0357e441998845f76e38e14dc609 Mon Sep 17 00:00:00 2001 From: benoitc Date: Mon, 18 Jan 2010 17:59:26 +0100 Subject: [PATCH] write should return length of data --- gunicorn/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/util.py b/gunicorn/util.py index 7ad4bd14..dfd34587 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -76,7 +76,7 @@ def write(sock, data): if bytes < len(buf): buf = buf[bytes:] continue - return bytes + return len(data) except socket.error, e: if e[0] in (errno.EWOULDBLOCK, errno.EAGAIN): break