]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
asyncpg: shield connection close in terminate to avoid connection leak
authorFederico Caselli <cfederico87@gmail.com>
Fri, 17 Jan 2025 20:16:51 +0000 (21:16 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jan 2025 18:05:01 +0000 (13:05 -0500)
commit2f6ca6554ddd725849dd6b2d32bf495391087bec
tree053a572425dc6507bd9a4a15caa883540e73de52
parent214088c42ad61794e315174c41ee92a3c408ae6c
asyncpg: shield connection close in terminate to avoid connection leak

Added an additional ``shield()`` call within the connection terminate
process of the asyncpg driver, to mitigate an issue where terminate would
be prevented from completing under the anyio concurrency library.

Fixes #12077
Closes: #12076
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12076
Pull-request-sha: 6ae261ea7668f4c850874666efec6fef658b08c0

Change-Id: Iaec63d02b620201dc60ffdad76ba9d61d427cac1
doc/build/changelog/unreleased_20/12077.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/asyncpg.py