From 494ae50ad3fe8c978a814648cbc0344f85310918 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 1 Jan 2012 14:00:13 -0800 Subject: [PATCH] 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. --- tornado/ioloop.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tornado/ioloop.py b/tornado/ioloop.py index 6fd29a02..4ed638e7 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.