Roman Suzi wrote at 2005-11-8 13:05 +0200:
... What about serving large files given file(-like) handler? It could be very beneficial sometimes, especially with dynamically generated content...
You must observe the restrictions required by HTTP! HTTP 1.1 requires that if a response contains a "Content-Length" header, then it *MUST* correctly specify the size of the response entity. If it does not contain a "Content-Length", then its end *MUST* be indicated by closing the connection. Zope is a bit buggy in this respect. It always adds a "Content-Length" header, if the application did not do so. Of course, this automatically added header has (almost surely) the wrong value for dynamically created content. Currently, Zope does not support the "no Content-Length; response end by connection close" possibility. -- Dieter