Skip to content

Fix slow connect crashing the connection pool - #928

Open
aboroska wants to merge 2 commits into
benoitc:masterfrom
aboroska:fix-slow-connect-crashing-pool
Open

Fix slow connect crashing the connection pool#928
aboroska wants to merge 2 commits into
benoitc:masterfrom
aboroska:fix-slow-connect-crashing-pool

Conversation

@aboroska

@aboroska aboroska commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Convert a connection call timeout into a checkout error. The pool must not terminate just because a DNS/TCP/TLS attempt outlives its timeout.

Fixes: #927

aboroska and others added 2 commits August 11, 2026 09:35
Convert a connection call timeout into a checkout error. The pool
must not terminate just because a DNS/TCP/TLS attempt outlives its timeout.

Fixes: benoitc#927
Only exit:{timeout, _} was caught, so a transport raising or the conn
being killed while dialing still took the pool down. Catch any exit from
the connect call and return it as a checkout error. The caller already
stops the conn on every error return.
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.

4.x regression, a slow connect crashes the caller

2 participants