You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2022. It is now read-only.
defclose(self):
ifself.closed:
raisePoolError('connection pool is already closed')
self.conns.close_alive()
#following line would be meaningless if there are busy connections out thereself.conns.empty()
self.closed=True
When there are busy connections at the time you invoking Pool.close(), after close_alive() being called, those busy connections will be put back to
self.deadof ConnectionContainer at next io_loop iteration if connections are managed by Pool.manage(). Thus, the empty() call next to close_alive() would be meaningless, and it will fire the assert by wrong reason:assert conn in self.busy, "Tried to release non-busy connection"