]> 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:11:02 +0000 (13:11 +0100)
commit0d1cd270732101312111e15b00975a5669b214d6
treecb96778fd95cf11582c96a974d882254d27f4a95
parent0c2d649fd1767addc1009524f21d5bc5c8d15dd1
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