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
Traceback (most recent call last):
File "<stdin>", line 11, in test_connect
File "python3.6/site-packages/asyncpg/connection.py", line 1688, in connect
max_cacheable_statement_size=max_cacheable_statement_size)
File "python3.6/site-packages/asyncpg/connect_utils.py", line 543, in _connect
connection_class=connection_class)
File "python3.6/site-packages/asyncpg/connect_utils.py", line 519, in _connect_addr
await asyncio.wait_for(connected, loop=loop, timeout=timeout)
File "python3.6/asyncio/tasks.py", line 351, in wait_for
yield from waiter
concurrent.futures._base.CancelledError
After running this script 3-6 iterations of 50 lead to connection leaks:
$ netstat -a | grep 6432 | awk '{ print $6 }'
ESTABLISHED
ESTABLISHED
ESTABLISHED
ESTABLISHED
These connections remain establised while python process is running.
Our service is based on aiohttp application. Servise has about 5K request per second. When client request is finished by timeout aiohttp cancels handler task. This situation occurrs very often when we have network problem. And in this case we have thousands of lost connections.
The text was updated successfully, but these errors were encountered:
the issue with a local PostgreSQL install?:
uvloop?:
asyncio.CancelledError occured in this place may be cause of connection leak.
The code below reproduces this problem:
Printed traceback:
After running this script 3-6 iterations of 50 lead to connection leaks:
These connections remain establised while python process is running.
Our service is based on aiohttp application. Servise has about 5K request per second. When client request is finished by timeout aiohttp cancels handler task. This situation occurrs very often when we have network problem. And in this case we have thousands of lost connections.
The text was updated successfully, but these errors were encountered: