[Zope-dev] serving BLOBs

Alan Milligan alan at balclutha.org
Mon Oct 11 11:32:50 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johan Carlsson wrote:

|
| I've looked at the code of the latest release of ExternalFile
| and I can't find the new streming interface being used at all?
|

There's some strange stuff in the ExternalFile::FileUtils::copy_file()
function whereby it writes 65565 byte chunks via the Response object,
ZServer::ZServerHTTPResponse.

This guy automatically sets streaming for writes with content size less
than  128K.

I would have expected to the ZServerHTTPResponse's stdout attribute to
automatically flush on write(), but maybe not!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBaqeiCfroLk4EZpkRAirFAJ9gMJLRhcJiJN+0vPbAVYb4iMpf4gCfZosl
EXrzHTIHdsXa+C82pDND/W8=
=043z
-----END PGP SIGNATURE-----


More information about the Zope-Dev mailing list