[Zope-Checkins] CVS: Zope/ZServer - HTTPResponse.py:1.37

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 11 Mar 2002 07:08:28 -0500


Update of /cvs-repository/Zope/ZServer
In directory cvs.zope.org:/tmp/cvs-serv25678/ZServer

Modified Files:
	HTTPResponse.py 
Log Message:
merge toby-small-chunks-branch; Collector 272: RESPONSE.write of small chunks

=== Zope/ZServer/HTTPResponse.py 1.36 => 1.37 ===
             data = '%x\r\n%s\r\n' % (len(data),data)
 
+        l=len(data)
+        
         t=self._tempfile
-        if t is None:
+        if t is None or l<200:
             stdout.write(data)
         else:
-            l=len(data)
             b=self._tempstart
             e=b+l
             self._templock.acquire()