From abba17cd18527a1ae92ab433c5236c1cd81e3eaa Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 1 Feb 2009 00:53:23 +0100 Subject: wsgi compliance: scgi.asynchronous no longer holds data --- wsgitools/scgi/asynchronous.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wsgitools') diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py index 7ef10b9..9fedb87 100644 --- a/wsgitools/scgi/asynchronous.py +++ b/wsgitools/scgi/asynchronous.py @@ -156,8 +156,7 @@ class SCGIConnection(asyncore.dispatcher): assert isinstance(data, str) if data: self.outbuff += data - if len(self.outbuff) >= self.blocksize: - break + break if len(self.outbuff) == 0: if hasattr(self.wsgihandler, "close"): self.wsgihandler.close() -- cgit v1.2.3