Skip to content

docs(mux): name Router::plan_connect in the two ServerSettings comments - #1667

Merged
FlorentinDUBOIS merged 1 commit into
mainfrom
docs/router-plan-connect-comments
Sep 28, 2026
Merged

FlorentinDUBOIS merged 1 commit into
mainfrom
docs/router-plan-connect-comments

Conversation

@FlorentinDUBOIS

@FlorentinDUBOIS FlorentinDUBOIS commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Two comments in lib/src/protocol/mux/h2.rs, added with the #1631 ServerSettings fix after the #1519 split, still named Router::connect, which #1519 renamed Router::plan_connect:

  • the write-readiness arm (H2State::ServerSettings, Position::Client(..)) of ConnectionH2::dispatch_writable_state;
  • the rustdoc of 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 shared decide_after_gate body, reached from plan_connect directly or through plan_connect_resume after the per-IP gate. It selects a BackendStatus::Connected H2 connection without looking at its H2State, then calls start_stream and link_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::connect mentions (rg -n 'Router::connect\b')

Validation

  • cargo +nightly fmt --all -- --check → exit 0
  • cargo build --locked → exit 0
  • check_doc_citations.py with --self-test, --root . and --root . --base origin/main → exit 0 each
  • check_doc_citations.py --audit --root . is advisory. Its 3 findings are already there before this change, in doc/configure_admin_ops.md and proxy_protocol/LIFECYCLE.md.
  • git diff origin/main -- '*.rs' | grep '^[-+]' | grep -vE '^[-+]\s*(//|\*|$)|^(\+\+\+|---)' → empty

Signed-off-by: Florentin Dubois [email protected]

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
FlorentinDUBOIS merged commit 63e25d0 into main Sep 28, 2026
28 checks passed
@FlorentinDUBOIS
FlorentinDUBOIS deleted the docs/router-plan-connect-comments branch September 28, 2026 18:51
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