summaryrefslogtreecommitdiff
path: root/wsgitools/scgi/forkpool.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools/scgi/forkpool.py')
-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 df92ec3..6d6f5c5 100644
--- a/wsgitools/scgi/forkpool.py
+++ b/wsgitools/scgi/forkpool.py
@@ -15,7 +15,7 @@ class SocketFileWrapper:
"""internal method for receiving and counting incoming data"""
if size is None:
data = self.sock.recv()
- self.readbytes += len(data)
+ self.toread -= len(data)
return data
data = self.sock.recv(size)
self.toread -= len(data)