Closed encorehu closed 9 years ago
@contextmanager
def manage(self, connection):
"""
Context manager that automatically returns connection to the pool.
...
my fault, plz close this issue
putconn
is not an async operation - it does its job immediately, i.e. no need to yield it to Tornado. Just do self.db.putcon(connection)
in your finally
clause or use manager.
so. i tried this example:
but error occured:
and i found solution, add param
callback=None
toputconn
function atconnection.py
line 444:and it should be fixed, but i've not test this