Repository navigation
Stagger connection attempts across resolved addresses (RFC 8305) - #935
Open
arturobernalg wants to merge 1 commit into
Open
arturobernalg wants to merge 1 commit into
arturobernalg wants to merge 1 commit into
Conversation
This was referenced Nov 10, 2026
arturobernalg
force-pushed
the
happy-eyeballs-connection-racing
branch
2 times, most recently
from
November 10, 2026 20:57
61b0873 to
3d985dd
Compare
Races connection attempts across a host's resolved addresses instead of trying them strictly sequentially: first address immediately, each next one after a configurable delay (250ms default) unless an earlier one fails first, in which case the next address starts at the RFC 8305 Section 5 minimum spacing (10ms). First success wins; the rest are cancelled or closed. An attempt cancelled from outside the race is treated like a failure so the future is never left pending forever. A winning session can be selected by the race at the same moment the caller cancels the outer Future directly. ComplexFuture#completed then returns false; close the session instead of silently dropping it. Opt-in, off by default; disabled behavior is unchanged.
arturobernalg
force-pushed
the
happy-eyeballs-connection-racing
branch
from
November 11, 2026 04:53
3d985dd to
1abc5cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Races connection attempts across a host's resolved addresses instead of trying them strictly sequentially. First address immediately, each next one after a delay (250ms default) or at the RFC 8305 minimum spacing (10ms) if an earlier one just failed.
First success wins; every other attempt is cancelled or its socket closed.
Opt-in, off by default; disabled behavior is unchanged.