]> git.michaelhowe.org Git - packages/b/bup.git/commit
cmd/web: stream large files asynchronously.
authorAvery Pennarun <apenwarr@gmail.com>
Mon, 4 Oct 2010 03:41:09 +0000 (20:41 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 4 Oct 2010 03:56:05 +0000 (20:56 -0700)
commit3ce29512e3a402bb1a8fd5461c25710f76169f8f
tree592de256154537bf185a547b01cfbaa327527fce
parentb23c0463de41fbbb0053a8806f06e3c217888bdd
cmd/web: stream large files asynchronously.

We had a nice chunkyreader() loop for writing files, but unfortunately,
Tornado captured the full content of those files before writing them to the
client.  Oops.

Change things around so we don't end up buffering some multiple of the
ENTIRE FILE in memory.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/web-cmd.py