From: Ben Darnell Date: Sun, 1 Jan 2012 22:00:13 +0000 (-0800) Subject: Increase maximum IOLoop poll timeout. X-Git-Tag: v2.2.0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=494ae50ad3fe8c978a814648cbc0344f85310918;p=thirdparty%2Ftornado.git Increase maximum IOLoop poll timeout. I believe the previous 0.2s limit was there to work around an old bug in the add_callback waker that has since been fixed. --- diff --git a/tornado/ioloop.py b/tornado/ioloop.py index 6fd29a029..4ed638e7e 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -241,8 +241,7 @@ class IOLoop(object): self._thread_ident = thread.get_ident() self._running = True while True: - # Never use an infinite timeout here - it can stall epoll - poll_timeout = 0.2 + poll_timeout = 3600.0 # Prevent IO event starvation by delaying new callbacks # to the next iteration of the event loop.