MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.99k stars 404 forks source link

Fix: connection leak on TimeoutError in acquire #1052

Closed Vovetta closed 1 year ago

Vovetta commented 1 year ago

Should fix #955

On many concurrent requests sometimes TimeoutError raises, but acquire future is done That leads to connection leak, cause connection not returns to pool