]> git.ipfire.org Git - thirdparty/tornado.git/commit
Added period check in PeriodicCallback
authorPeter Sobot <github@petersobot.com>
Tue, 23 Oct 2012 18:33:17 +0000 (15:33 -0300)
committerPeter Sobot <github@petersobot.com>
Tue, 23 Oct 2012 18:33:17 +0000 (15:33 -0300)
commit041388cbca1eadcb8bc5ad01aeadc7a2cd6aa8eb
treeff80db66d60a7522806cc8e6319ac2812d73e356
parentdb843a5987cf927c1ecaa348ba65e324f3c08553
Added period check in PeriodicCallback

If a user currently passes in 0ms (hopefully by accident) as the
callback time for a periodic callback, Tornado consumes a huge amount
of CPU and never calls the function.
tornado/ioloop.py