diff options
Diffstat (limited to 'wsgitools/scgi')
-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 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) |