]> git.ipfire.org Git - thirdparty/tornado.git/commit
Add gen.moment, a yieldable object that resumes after one IOLoop iteration.
authorBen Darnell <ben@bendarnell.com>
Sun, 11 May 2014 22:49:40 +0000 (18:49 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 11 May 2014 22:49:40 +0000 (18:49 -0400)
commit4f0d837ed2776eddaeb8c80b3224daf97ff35c54
tree8585d32b096b671ec3c4c82dce3b7578b5236a3f
parent302f57eef4eedcf1c3657ea4aee4b998483f26e3
Add gen.moment, a yieldable object that resumes after one IOLoop iteration.

Use this between requests in HTTP1ServerConnection to keep one connection
from monopolizing the IOLoop when there are pipelined (or just fast) requests
available.  This was causing increased variance in benchmarks using "ab -k"
(it also increased throughput, for reasons that are not yet clear, so this
change reduces observed speed in these benchmarks).
docs/gen.rst
tornado/gen.py
tornado/http1connection.py
tornado/test/gen_test.py