[Zope3-dev] RFC: Make HTTP streaming of large data simpler

Jim Fulton jim at zope.com
Tue Dec 6 09:30:47 EST 2005


Christian Theune wrote:
> Hi,
> 
> Am Montag, den 05.12.2005, 11:13 -0500 schrieb Jim Fulton:
> 
> 
>>For A, you want to compute that data and then leave
>>application code.  You don't want to stay in the
>>application, holding application resources, like database
>>connections, while the data is being consumed.  In this case,
>>you generally want to create a temporary file and return that
>>as the IResult body.  This means that implementations like
>>the one you give:
> 
> 
> So in any case, to get bug 480 tackled, which is my intention here,

No, your intention is to handle a large body efficiently.

 > I'd
> be good to do it via a temporary file and pass that back either via
> adaption or wrapping it into an IResult-thingy.

Yes.

> Now I wonder whether I _do_ have to provide the headers which are set
> automatically right now ...

I don't know what you mean by "set automatically now". My guess is that
zsync is setting the headers explicitly.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-dev mailing list