]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(pool): use an exponential backoff to separate failing checks
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 29 Dec 2023 23:41:07 +0000 (00:41 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 6 Jan 2024 12:04:47 +0000 (13:04 +0100)
commit6a6f0acff0a7926beb7f29f960249cd5fe3ae24f
tree4ab662dec8a7c5f97b2d7ed6b6702bc665b761e4
parent4ce737dd97b84f34b6743a508356074dc246946a
fix(pool): use an exponential backoff to separate failing checks

This is a consistent behaviour with with the exponential backoff used in
reconnection attempts, and actually we could reuse the same object
implementing the backoff + jitter.

See also #709
docs/news_pool.rst
psycopg_pool/psycopg_pool/_acompat.py
psycopg_pool/psycopg_pool/pool.py
psycopg_pool/psycopg_pool/pool_async.py
tests/pool/test_pool.py
tests/pool/test_pool_async.py