asyncmongo
asyncmongo copied to clipboard
fix bug that connections didn't release
when Tornado autoreload, asyncmongo didn't release all connections.
any other details? don't agree. ConnectionPools.close_idle_connections() will close other client's(or pool) socket when one client object initialization.
My solution is add hook method when Tornado autoreload now.
Which version of Tornado you are using? It already added a hook function in autoload module: _close_all_fds, at least in the version 2.3.0.
my version is newest , tornado 3.0+