[Zope-dev] Optimization and speed

Dieter Maurer dieter@handshake.de
Mon, 17 Jul 2000 08:48:22 +0200 (CEST)


Steve Alexander writes:
 >  lib/python/ZPublisher/BaseResponse.py
 > 
 >     def write(self,data):
 >         """\
 >         Return data as a stream
 > 
 >         HTML data may be returned using a stream-oriented interface.
 >         This allows the browser to display partial results while
 >         computation of a response to proceed.
 > 
 >         The published object should first set any output headers or
 >         cookies on the response object.
 > 
 >         Note that published objects must not generate any errors
 >         after beginning stream-oriented output. 
 > 
 >         """
 > 
 > Looks like it's more that just a tweak, though :-(
Do not use streaming HTTP with off-the-shelf Zope 2.1.6.
The included ZServer has a thread synchronization problem
causing non-deterministic page corruption.

To use the method above, you need to use Zope 2.2.x or at least
upgrade ZServer.


Dieter