diff options
-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 44dd362..8171172 100644 --- a/wsgitools/scgi/forkpool.py +++ b/wsgitools/scgi/forkpool.py @@ -17,7 +17,7 @@ class SocketFileWrapper: except: raise # Yes, this is necessary. else: self.buff = "" - if size >= len(self.buff): + if size <= len(self.buff): ret, self.buff = self.buff[:size], self.buff[size:] return ret try: |