]> git.ipfire.org Git - thirdparty/tornado.git/commit
Improve callback scheduling.
authorBen Darnell <ben@bendarnell.com>
Sun, 15 Jun 2014 16:11:22 +0000 (12:11 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 15 Jun 2014 16:11:22 +0000 (12:11 -0400)
commit1591ade4d06cd6b4e0f226f2ea75282c42c33187
treeaeb538d3236813c7a913a2f54750edd208b15136
parent7a0eda1338bc603b7edc82af21f37558b6d0bae5
Improve callback scheduling.

Collect all timeouts to be run before running any of them; this
prevents starvation when a slow callback reschedules itself.

Call time() again before setting poll_timeout to avoid scheduling
anomalies with slow callbacks.

Closes #947.
tornado/ioloop.py