Skip to content

Avoid reusing closing socket pool routes#257

Open
marcus-pousette-hp wants to merge 4 commits into
mainfrom
fix/avoid-closing-socket-pool-routes
Open

Avoid reusing closing socket pool routes#257
marcus-pousette-hp wants to merge 4 commits into
mainfrom
fix/avoid-closing-socket-pool-routes

Conversation

@marcus-pousette-hp

Copy link
Copy Markdown
Contributor

Reusable socket routes were only removed after the underlying socket emitted close. During shutdown, a route could still point at a socket with socket.closing === true, causing new connections to first retry a stale transport before falling back to the normal connect path.

This skips and removes closing routes during lookup, avoiding wasted reconnect attempts and reducing latency/flakiness under reconnect churn.

@marcus-pousette-hp marcus-pousette-hp requested a review from a team May 18, 2026 21:31
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