]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(pool): fix handling of errors in queued async tasks
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 16 Mar 2023 21:07:05 +0000 (22:07 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 16 Mar 2023 21:21:41 +0000 (22:21 +0100)
commitd87562392b4be36bb35b2b975041fcb0dfac11da
tree3bb528789f133ffd08fb22db17edd3f7a6d76eba
parent7f08e29184095645fc046da435f2f2e03ccb4982
fix(pool): fix handling of errors in queued async tasks

Failing to do so, cancelled tasks still in the queue end up consuming
a connection without a chance of returning it, depleting the pool.

Close #509
docs/news_pool.rst
psycopg_pool/psycopg_pool/pool_async.py
tests/pool/test_null_pool_async.py
tests/pool/test_pool_async.py