ERROR:root:Exception in callback
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/tornado/ioloop.py", line 238, in _run_callback
callback()
File "/usr/local/lib/python2.6/dist-packages/tornado/httpclient.py", line 214, in _perform
self.io_loop.remove_handler(fd)
File "/usr/local/lib/python2.6/dist-packages/tornado/ioloop.py", line 133, in remove_handler
self._impl.unregister(fd)
IOError: [Errno 2] No such file or directory
For me, this was in the context of using a load testing script written by my colleague Dan Mesh. The script makes use of AsyncHTTPClient and runs several such objects in parallel, hitting a number of URLs. When the number of concurrent HTTP requests reaches around 100, I start seeing this error.
Solution? Install tornado from the latest source code on GitHub.