Skip to content

Fix Pool::close_blocking leaking connections on error#38

Merged
ryanfowler merged 1 commit intomainfrom
fix-pool-close-blocking-leak
Feb 1, 2026
Merged

Fix Pool::close_blocking leaking connections on error#38
ryanfowler merged 1 commit intomainfrom
fix-pool-close-blocking-leak

Conversation

@ryanfowler
Copy link
Owner

close_blocking used try_for_each which short-circuits on the first error, leaving remaining clients' worker threads running indefinitely. Replace with a loop that closes all clients and returns the first error, matching the behavior of the async Pool::close.

close_blocking used try_for_each which short-circuits on the first
error, leaving remaining clients' worker threads running indefinitely.
Replace with a loop that closes all clients and returns the first
error, matching the behavior of the async Pool::close.
@ryanfowler ryanfowler merged commit 4eb2f25 into main Feb 1, 2026
2 checks passed
@ryanfowler ryanfowler deleted the fix-pool-close-blocking-leak branch February 1, 2026 15:27
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.

1 participant