]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Add ConnectionTimeout subclass of OperationalError
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 5 Jan 2022 01:50:25 +0000 (02:50 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 5 Jan 2022 22:14:23 +0000 (23:14 +0100)
commit75189c66073fbfd97b6caadbc5960d664b9ff3e4
treec0eb27fd0dab29780b55a51193b1d38288abbaa0
parentee6e822615db5da8889de56f9fa78f4966625ce1
Add ConnectionTimeout subclass of OperationalError

To be used in the connection pool to detect timeout on connection.

Backported to Psycopg 3.0.8 to allow the pool 3.1 to work with it, at
least on diminished capacity (NullPool.connection() would time out only
for clients in the queue, not in case of new connection timeout).
psycopg/psycopg/errors.py
psycopg/psycopg/waiting.py