]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Increase maximum IOLoop poll timeout.
authorBen Darnell <ben@bendarnell.com>
Sun, 1 Jan 2012 22:00:13 +0000 (14:00 -0800)
committerBen Darnell <ben@bendarnell.com>
Sun, 1 Jan 2012 22:00:13 +0000 (14:00 -0800)
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.

tornado/ioloop.py

index 6fd29a029f061d561d561158d59ef93cb2a4312e..4ed638e7eba15110f0f6e036c7d3d23f7c12d0fe 100644 (file)
@@ -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.