From: Ben Darnell Date: Thu, 5 Aug 2010 01:47:42 +0000 (-0700) Subject: Use the right IOLoop in AsyncHTTPClient's PeriodicCallback X-Git-Tag: v1.1.0~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae3c35454787d0e5c071e9485872f9390a8bd406;p=thirdparty%2Ftornado.git Use the right IOLoop in AsyncHTTPClient's PeriodicCallback --- diff --git a/tornado/httpclient.py b/tornado/httpclient.py index fd72ad430..df8b66861 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -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