]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Use the right IOLoop in AsyncHTTPClient's PeriodicCallback
authorBen Darnell <ben@bendarnell.com>
Thu, 5 Aug 2010 01:47:42 +0000 (18:47 -0700)
committerBen Darnell <ben@bendarnell.com>
Thu, 5 Aug 2010 01:47:42 +0000 (18:47 -0700)
tornado/httpclient.py

index fd72ad4301ecece0a2873067c4171e50a17eab60..df8b668615d7d638946c36fcd8f6369993b5adab 100644 (file)
@@ -148,7 +148,7 @@ class AsyncHTTPClient(object):
             # SOCKETFUNCTION.  Mitigate the effects of such bugs by
             # forcing a periodic scan of all active requests.
             instance._force_timeout_callback = ioloop.PeriodicCallback(
-                instance._multi.socket_all, 1000)
+                instance._multi.socket_all, 1000, io_loop=io_loop)
             instance._force_timeout_callback.start()
 
             return instance