]> git.ipfire.org Git - thirdparty/tornado.git/commit
Stream large response bodies from StaticFileHandler.
authorBen Darnell <ben@bendarnell.com>
Sun, 25 May 2014 16:50:51 +0000 (12:50 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 25 May 2014 16:50:51 +0000 (12:50 -0400)
commitc93e961fe413796cbd48e329094d3147c84cdf6d
tree34df44cdf6bd98660bb4a7940fb59af8e7f352fd
parent59fee55e250a538ea3d4b0eaa9ca6d18a1914941
Stream large response bodies from StaticFileHandler.

The get_content interface is still synchronous so it's not a complete
solution, but this will keep the server from buffering the whole file in
memory while writing it out to the client.

Return Futures from the wsgi interface, allowing @gen.coroutine to be
used there in limited circumstances.
tornado/http1connection.py
tornado/test/web_test.py
tornado/web.py
tornado/wsgi.py