summaryrefslogtreecommitdiff
path: root/wsgitools
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2009-10-25 20:28:17 +0100
committerHelmut Grohne <helmut@subdivi.de>2009-10-25 20:28:17 +0100
commit0aa63f96ea27cb276edd5bcc887dffd6c24caaf5 (patch)
tree5c020a822f0abc7d0e3f188f4bd7821e6465c8e2 /wsgitools
parenta6c3a9804ec9c460250cc922e84c05608d3ffb61 (diff)
downloadwsgitools-0aa63f96ea27cb276edd5bcc887dffd6c24caaf5.tar.gz
more SocketFileWrapper (forkpool) bugs
Diffstat (limited to 'wsgitools')
-rw-r--r--wsgitools/scgi/forkpool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py
index a0b4139..8d56178 100644
--- a/wsgitools/scgi/forkpool.py
+++ b/wsgitools/scgi/forkpool.py
@@ -26,7 +26,7 @@ class SocketFileWrapper:
@raise socket.error:
"""
try:
- data = self.sock.recv(size)
+ data = self.sock.recv(min(size, self.toread))
except socket.error, why:
if why[0] in (errno.ECONNRESET, errno.ENOTCONN, errno.ESHUTDOWN):
data = ""