Commit 69440268 authored by Toby Dickenson's avatar Toby Dickenson

merge toby-small-chunks-branch; Collector 272: RESPONSE.write of small chunks

parent 82d5f6e9
......@@ -172,11 +172,12 @@ class ZServerHTTPResponse(HTTPResponse):
if self._chunking:
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()
......
......@@ -27,6 +27,8 @@ Zope Changes
enables retrieval of the document source for dedicated WebDAV
clients (see ENVIRONMENT.txt for usage)
- Collector #272: Optimisations for RESPONSE.write
Bugs:
- Collector #32: Use difflib instead of ndiff
......
......@@ -172,11 +172,12 @@ class ZServerHTTPResponse(HTTPResponse):
if self._chunking:
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment