On Tue, 8 Nov 2005, Dieter Maurer wrote:

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

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.

Thank you all for explanations! While I do not necessary agree that Zope
is buggy in this respect, it could still be good for the purpose of
serving large files to have some by side technology, which doesnt require
ZODB access. Otherwise there is a need for Apache or whatever.

Sincerely yours, Roman Suzi
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to