Skip to content

Fix connection pool deadlock - #1324

Merged
elprans merged 2 commits into
MagicStack:masterfrom
pchaseh:bug/pool-deadlock
Sep 21, 2026
Merged

elprans merged 2 commits into
MagicStack:masterfrom
pchaseh:bug/pool-deadlock

Conversation

@pchaseh

@pchaseh pchaseh commented May 19, 2026

Copy link
Copy Markdown
Contributor

Fixes an issue where the connection pool can be deadlocked if abort() is called which can cause connection cleanup to be skipped. Refer to the referenced issue for a reproducible example

Closes #1307

@elprans elprans left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling _release() directly in this case would bypass cleanup of connection-associated resources. Calling _terminate() instead. LGTM otherwise! Thanks!

@elprans
elprans merged commit 4a83cc2 into MagicStack:master Sep 21, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Possible connection pool deadlock

2 participants