diff options
author | Helmut Grohne <helmut@subdivi.de> | 2009-10-25 20:28:17 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2009-10-25 20:28:17 +0100 |
commit | 0aa63f96ea27cb276edd5bcc887dffd6c24caaf5 (patch) | |
tree | 5c020a822f0abc7d0e3f188f4bd7821e6465c8e2 | |
parent | a6c3a9804ec9c460250cc922e84c05608d3ffb61 (diff) | |
download | wsgitools-0aa63f96ea27cb276edd5bcc887dffd6c24caaf5.tar.gz |
more SocketFileWrapper (forkpool) bugs
-rw-r--r-- | wsgitools/scgi/forkpool.py | 2 |
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 = "" |