]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
integrate connection.terminate() for supporting dialects
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Aug 2022 13:28:06 +0000 (09:28 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Aug 2022 17:02:23 +0000 (13:02 -0400)
commit776abf43d7404a3fa165588fd1e1e2d5ef9a9f04
tree135f6055d98c0a956f32378d53d6ea6c6a358ad9
parent27bf1c1c287debb69c4644bf6dc35e3bad5470ad
integrate connection.terminate() for supporting dialects

Integrated support for asyncpg's ``terminate()`` method call for cases
where the connection pool is recycling a possibly timed-out connection,
where a connection is being garbage collected that wasn't gracefully
closed, as well as when the connection has been invalidated. This allows
asyncpg to abandon the connection without waiting for a response that may
incur long timeouts.

Fixes: #8419
Change-Id: Ia575af779d5733b483a72dff3690b8bbbad2bb05
doc/build/changelog/unreleased_14/8419.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/asyncpg.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/pool/base.py
test/engine/test_logging.py
test/engine/test_pool.py