Skip to content

Fix slow connect crashing the connection pool - #928

Merged
benoitc merged 2 commits into
benoitc:masterfrom
aboroska:fix-slow-connect-crashing-pool
Aug 12, 2026
Merged

Fix slow connect crashing the connection pool#928
benoitc merged 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.
@benoitc benoitc self-assigned this Aug 11, 2026
@benoitc
benoitc merged commit 86180b6 into benoitc:master Aug 12, 2026
6 checks passed
@benoitc benoitc mentioned this pull request Aug 12, 2026
sisila pushed a commit to sisila/hackney that referenced this pull request Aug 14, 2026
Bundles the pool fixes merged since 4.7.3 (benoitc#927/benoitc#928, benoitc#929) and the
dependency bumps (h2 0.12.0, webtransport 0.4.5, benoitc#930).
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