Open
Description
Based on the deprecation warnings in 0.2.5 I changed my application code from:
async with pool.acquire() as conn:
to:
async with pool.connection() as conn:
After deploying this change my application failed with lots of errors like this:
AsynchPoolError('no free connection in the <Pool(minsize=1, maxsize=10) object at 0x7f5ed1859190; status: PoolStatus.opened>')
Looks like previously pool.acquire()
would wait for a free connection, while pool.connection()
simply throws an exception. Is this expected behaviour?
Metadata
Metadata
Assignees
Labels
No labels