]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Make poll timeout patchable. 859/head
authorMarc Schlaich <marc.schlaich@googlemail.com>
Fri, 19 Jul 2013 11:36:00 +0000 (13:36 +0200)
committerMarc Schlaich <marc.schlaich@googlemail.com>
Fri, 19 Jul 2013 11:36:00 +0000 (13:36 +0200)
tornado/ioloop.py

index fe7e276d5f2999c76fd53a995b11430cb7ddfd20..fc61904e189c2e0328f254bbc8b8239bd680bb4c 100644 (file)
@@ -59,6 +59,9 @@ except ImportError:
 from tornado.platform.auto import set_close_exec, Waker
 
 
+_POLL_TIMEOUT = 3600.0
+
+
 class TimeoutError(Exception):
     pass
 
@@ -596,7 +599,7 @@ class PollIOLoop(IOLoop):
                 pass
 
         while True:
-            poll_timeout = 3600.0
+            poll_timeout = _POLL_TIMEOUT
 
             # Prevent IO event starvation by delaying new callbacks
             # to the next iteration of the event loop.