[Zope-Checkins] CVS: Zope/ZServer - HTTPResponse.py:1.36.24.1
Toby Dickenson
tdickenson@geminidataloggers.com
Mon, 11 Mar 2002 07:02:44 -0500
Update of /cvs-repository/Zope/ZServer
In directory cvs.zope.org:/tmp/cvs-serv24334
Modified Files:
Tag: toby-small-chunks-branch
HTTPResponse.py
Log Message:
Collector 272: RESPONSE.write of small chunks
=== Zope/ZServer/HTTPResponse.py 1.36 => 1.36.24.1 ===
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()