]> git.ipfire.org Git - thirdparty/tornado.git/commit
try close method to close FDs in IOLoop
authorMinRK <benjaminrk@gmail.com>
Mon, 15 Apr 2013 18:36:58 +0000 (11:36 -0700)
committerMinRK <benjaminrk@gmail.com>
Mon, 15 Apr 2013 18:36:58 +0000 (11:36 -0700)
commita4279d24a9cd7dacfa3f9aa410a5272ed26ba8bb
tree005855aa4f74805390be80742ca4a22de17590e9
parent688afb5c350c05fad87d6b51935be72752e93f90
try close method to close FDs in IOLoop

If an object has a `close` method, use that first,
then fallback on `os.close`.

This is useful in subclasses that support polling things (zmq sockets, specifically)
that are not simple FDs (and Jython, I hear?).
tornado/ioloop.py