Repository navigation
docs(mux): name Router::plan_connect in the two ServerSettings comments - #1667
Merged
Merged
Conversation
Two comments in lib/src/protocol/mux/h2.rs, added with the #1631 ServerSettings fix after the #1519 split, still named `Router::connect`, which that split renamed `Router::plan_connect`: the write-readiness arm of `ConnectionH2::dispatch_writable_state` and the rustdoc of `a_backend_stream_ended_during_the_handshake_keeps_the_connection`. Both now name `Router::plan_connect`'s pool scan, which is where the stream is linked: the scan (the shared `decide_after_gate` body, reached from `plan_connect` directly or through `plan_connect_resume` after the per-IP gate) selects a `BackendStatus::Connected` H2 connection without consulting its `H2State`, then calls `start_stream` and `link_stream`. Comment-only; each paragraph is reflowed within its original line count, so no citation or pinned block moves. Signed-off-by: Florentin Dubois <[email protected]>
FlorentinDUBOIS
requested review from
Wonshtrum and
llenotre
as code owners
September 28, 2026 17:54
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.
Two comments in
lib/src/protocol/mux/h2.rs, added with the #1631ServerSettingsfix after the #1519 split, still namedRouter::connect, which #1519 renamedRouter::plan_connect:(H2State::ServerSettings, Position::Client(..))ofConnectionH2::dispatch_writable_state;a_backend_stream_ended_during_the_handshake_keeps_the_connection.Both now name
Router::plan_connect's pool scan. That is where the stream is linked: the scan is the shareddecide_after_gatebody, reached fromplan_connectdirectly or throughplan_connect_resumeafter the per-IP gate. It selects aBackendStatus::ConnectedH2 connection without looking at itsH2State, then callsstart_streamandlink_stream.The change touches only comments. Each paragraph is reflowed within its original line count, so no citation and no pinned block moves.
Other
Router::connectmentions (rg -n 'Router::connect\b')lib/src/protocol/mux/LIFECYCLE.md:530— left as is. "in the orderRouter::connectused" is past tense and describes the function before the split.CHANGELOG.md, 18 lines — left as is. They are historical entries: 15 in[Unreleased], all written before the rename (339f794), including the refactor(mux): split Router::connect into a plan and an embedder-performed dial (#1340, Q6 first half) #1519 entry that records the rename itself, and 3 in the released 2.0.0 section.Validation
cargo +nightly fmt --all -- --check→ exit 0cargo build --locked→ exit 0check_doc_citations.pywith--self-test,--root .and--root . --base origin/main→ exit 0 eachcheck_doc_citations.py --audit --root .is advisory. Its 3 findings are already there before this change, indoc/configure_admin_ops.mdandproxy_protocol/LIFECYCLE.md.git diff origin/main -- '*.rs' | grep '^[-+]' | grep -vE '^[-+]\s*(//|\*|$)|^(\+\+\+|---)'→ emptySigned-off-by: Florentin Dubois [email protected]