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.
This commit is contained in:
Ben Darnell 2012-01-01 14:00:13 -08:00
parent ad63265338
commit 494ae50ad3
1 changed files with 1 additions and 2 deletions

View File

@ -241,8 +241,7 @@ class IOLoop(object):
self._thread_ident = thread.get_ident() self._thread_ident = thread.get_ident()
self._running = True self._running = True
while True: while True:
# Never use an infinite timeout here - it can stall epoll poll_timeout = 3600.0
poll_timeout = 0.2
# Prevent IO event starvation by delaying new callbacks # Prevent IO event starvation by delaying new callbacks
# to the next iteration of the event loop. # to the next iteration of the event loop.