Repository navigation
perf(mux): stop allocating the backend id on every backend dial - #1565
Merged
Merged
Conversation
FlorentinDUBOIS
requested review from
Wonshtrum and
llenotre
as code owners
September 26, 2026 12:52
FlorentinDUBOIS
force-pushed
the
perf/backend-id-no-alloc
branch
from
September 26, 2026 14:16
8756edf to
9cbeeb5
Compare
`BackendRegistry::id_for` runs once per backend connection a mux session opens, and copied `Backend::backend_id` into a fresh `Rc<str>` each time even though `intern` had already reused the backend's slot. Each registry slot now keeps the `Rc<str>` id and the address it read when the session first interned the backend, and `id_for` clones them: a redial is a reference-count increment and no longer borrows the `RefCell`. The id is still copied once per session and backend, at interning. The cache cannot go stale: neither field is written after `Backend::new`, and a reload that replaces a backend builds a new `Rc`, which takes a new slot. Measured with a counting global allocator over 64 redials of each of two interned backends: 128 allocations before (one per dial), 0 after. Making `Backend::backend_id` itself an `Rc<str>` would also remove the per-session copy, but it changes a public field of `sozu_lib::backends::Backend` and breaks 14 sites in `lib/` alone before its tests and `e2e/` are compiled, so the change stays inside the registry. `sozu-lib`'s unit-test binary installs a thread-local counting allocator (`lib/src/lib.rs`, `test_allocations`), so a private hot-path call can carry an allocation budget; `a_redial_of_an_interned_backend_allocates_nothing` pins this one at zero. It is the binary's only global allocator: the local drain's `steady_state_emission_does_not_allocate` (#1561) moves onto it from its private `#[global_allocator]`, which cannot coexist with a second one in the same binary, and still asserts zero allocations. The new registry type shifts `mod.rs` by 39 and 87 lines, and the 24 `mod.rs:NNN` citations in `LIFECYCLE.md` and `doc/testing.md` are re-anchored to the same text. Closes #1564 Signed-off-by: Florentin Dubois <[email protected]>
FlorentinDUBOIS
force-pushed
the
perf/backend-id-no-alloc
branch
from
September 26, 2026 14:54
9cbeeb5 to
e6e87b1
Compare
This was referenced Sep 26, 2026
FlorentinDUBOIS
added a commit
that referenced
this pull request
Sep 26, 2026
Closes #1571 ## What `H2Shell::write_streams` built a fresh `Vec<IoSlice<'static>>` on every write pass. The first descriptor `h2_transmit::gather` pushed allocated it, and the pass freed it on return. Every transmitting pass therefore cost one heap allocation, and every response at least one. The vector is now a private `io_slices` field of `H2Shell`, reused for the connection's lifetime. The production change is three touches in `lib/src/protocol/mux/h2.rs`: the field, its one construction site, and the three statements in the `Transmit` arm that now name `self.io_slices`. ## Safety argument (unchanged window, no new `unsafe`) - Only the vector's capacity survives between passes, never a descriptor. `gather` clears it on entry and `confirm` clears it before `Kawa::consume`. - There is no `return` between those two calls. The only thing entered while the descriptors are live is `socket_write_vectored`, which cannot retain them. - If that write panics, the stranded descriptors are dropped without being read (`IoSlice` has no `Drop`). The next `gather` clears them before anything could read them. - The field is private, like `write_streams`, so the bracket still cannot be split from outside the crate. The narration in `h2.rs`, `h2_transmit.rs`, `h2_write_pass.rs`, `sim/tests/h2_simulation.rs` and `doc/h2_mux_internals.md` now says this. ## Test allocator The test uses the shared per-thread counter `crate::test_allocations` that #1565 added to `lib/src/lib.rs`. There is still exactly one `#[global_allocator]` under `lib/src`. ## Measurements **Unit test** `a_warm_write_pass_allocates_nothing` counts the allocations of one warm `write_streams` pass that transmits two blocks through a loopback socket: | | before | after | |---|---|---| | `cargo test --release` | 1 | **0** | | `cargo test` (debug) | 2 | 1 | The remaining debug allocation is the `format!` in `finalize_write`'s `#[cfg(debug_assertions)]` `Quiesce` arm. It does not exist in release, and the test accounts for it explicitly. To see the test fail, restore the per-pass local in `write_streams`: `left: 1, right: 0` in release, `left: 2, right: 1` in debug. **Release binary**, built with `--no-default-features --features crypto-ring,opentelemetry,splice,simd` (system malloc): - Setup: one worker, a `python3 -m http.server` backend, TLS H2 frontend. - Worker allocations come from an `LD_PRELOAD` malloc/calloc/realloc/memalign counter, read around each workload window. | workload (N=100) | before | after | |---|---|---| | allocations, 100 requests on one `curl --http2` connection (3 runs) | 6906 / 6825 / 6830 | 6601 / 6636 / 6571 | | allocations, 100 sequential connections (3 runs) | 40642 / 40684 / 40692 | 40566 / 40642 / 40632 | | `intentrace -p <worker> --trace writev`, 100 sequential connections | 600 | 600 | | `intentrace -p <worker> --trace writev`, 100 requests on one connection | 204 | 204 | The `writev(2)` count does not change: the change moves where the descriptors live, not how many go into each call. LOAD1 ranged 7.3–14.7 during the runs. These are counts, not timings, so the load does not skew them. ## Prior art - hyper's `h2` 0.4.15 writes through tokio-util's `poll_write_buf` (`h2/src/codec/framed_write.rs:142`), which gathers into a stack `[IoSlice; 64]` (`tokio-util/src/util/poll_buf.rs:126-133`). - HAProxy copies frames into the per-connection ring `h2c->mbuf` (`src/mux_h2.c:5073`) and sends each contiguous chunk with one stack `struct iovec` (`src/raw_sock.c:463-474`). A stack array bound to the borrow of `kawa` could remove the `'static` relabelling altogether. It would change the public `h2_transmit::gather` signature, though, so it is left out of this PR, as the issue explains. Signed-off-by: Florentin Dubois <[email protected]>
FlorentinDUBOIS
added a commit
that referenced
this pull request
Sep 26, 2026
Closes #1579 Since #1565 every `BackendId` carries its id as an `Rc<str>`, but the mux still turned it back into a heap `String` each time it stamped a request with its backend: twice per request on a reused backend connection, three times per dial. ## Change `HttpContext::backend_id` (`lib/src/protocol/kawa_h1/editor.rs`) and `SessionMetrics::backend_id` (`lib/src/lib.rs`) become `Option<Rc<str>>`, and every mux writer clones the `BackendId`'s `Rc`: | Site | Before | After | |---|---|---| | `Router::decide_after_gate`, reuse branch (`router.rs:740`, `:742`) | 2 `to_string()` per request | 2 `Rc::clone` | | `Router::backend_from_request` (`router.rs:1185`) | 1 copy per dial | `Rc::clone` | | `Mux::dial_backend`, `SessionMetrics` copy (`mod.rs:2032`) | 1 copy per dial | `Rc` clone | | `Mux::dial_backend`, gauge label (`mod.rs:1986`) | 1 copy per dial | `Rc::clone` | | raw TCP, `lib/src/tcp.rs:1747` | 1 `String` per session | 1 `Rc<str>` per session (same count) | ## Measured `crate::test_allocations`, 64 iterations after one warm-up. Both tests compare with `as_deref()`, so they compile against the old field type too; they were run red against the a3e72a3 production code with the tests in place. | Test (`lib/src/protocol/mux/router.rs`) | Before | After | |---|---|---| | `a_request_on_a_reused_backend_connection_allocates_nothing`: `decide_after_gate` on a reused keep-alive backend, minus a control doing only the mux bookkeeping it triggers (`Connection::start_stream` + `Context::link_stream`) | 256 vs 128 (+2 per request) | 128 vs 128 (+0) | | `stamping_a_dialled_backend_allocates_nothing`: `backend_from_request` through a stub `BackendDialer` holding pre-connected sockets | 64 (1 per dial) | 0 | `Mux::dial_backend` needs a live `L7Proxy` and `ProxySession`, for which the crate has no test double, so its two copies are counted from the source only. The reused-connection test uses a control because the branch also triggers two allocations that do not come from the backend id. Asserting 0 on the whole branch would be false, and asserting 2 would break as soon as either is fixed: - `remove_backend_stream` (`mod.rs:1123-1134`) drops the emptied reverse-index `Vec`, which `Context::link_stream` rebuilds on every attach; - `Mux::apply_backend_deltas` (`mod.rs:1252-1256`) empties the delta ledger with `std::mem::take`, so the next `record_backend_delta` reallocates it. These, the two per-dial `cluster_id` copies (`ConnectPlan::Dial` and `Position::Client` own a `String`) and the per-request `HttpContext::cluster_id` copy in `Router::plan_connect` stay out of this change. They are listed in #1579 and in the CHANGELOG. ## Why the field type change is acceptable Two public fields change type; no API is added. Every in-tree reader already goes through `as_deref()` / `as_ref()` (log context macros, access log, `record_backend_metrics!`, default answers), and `Rc<str>` derefs to `str`, so those readers compile unchanged. The breakage is 1 production writer (`lib/src/tcp.rs:1747`) plus 3 test fixtures (`editor.rs:1537`, `h1.rs:1874`, `h2.rs:16469`). `bin/`, `e2e/`, `command/` and `sim/` compile and pass without edits. #1565 declined the analogous change to `Backend::backend_id` because it broke 14 sites in `lib/`. Here it is the only way to remove the copy: a `String` field cannot hold the id without allocating. Neither struct derives `Serialize`, so the change needs no serde `rc` feature and adds no dependency. ## Docs `CHANGELOG.md` (Changed), `doc/testing.md` §2 (users of the counting allocator, plus the control-difference pattern), the `BackendId` doc comment and the reuse-branch comment. `mod.rs` and `editor.rs` keep their line counts, so no `LIFECYCLE.md` / `doc/` citation moves (`check_doc_citations.py --base a3e72a3…` reports 0 of 255 drifted). ## Checks Run locally at d53caea, each on its own, exit code read directly: - `cargo build --locked --no-default-features --features crypto-ring,opentelemetry,splice,simd` → 0 - `cargo +nightly fmt --all -- --check` → 0 - `cargo clippy --locked --no-default-features --features crypto-ring,opentelemetry,splice,simd --all-targets -- -D warnings` → 0 - `cargo test -p sozu-lib` → 0 (1148 passed in the unit binary) - `cargo test -p sozu` → 0 - `cargo test -p sozu-command-lib` → 0 - `cargo test -p sozu-e2e -- --skip tests::fuzz_tests::` → 0 (449 passed) - `RUSTFLAGS="--cfg tokio_unstable" cargo test -p sozu-sim --locked` → 0 - `RUSTFLAGS="--cfg tokio_unstable" cargo clippy -p sozu-sim --locked --all-targets -- -D warnings` → 0 - `check_doc_citations.py --self-test`, `--root .`, `--base a3e72a3`, `--audit --root .` → 0 each (the audit's 7 advisory findings are in files this change does not touch) - `RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --locked` → 0 The e2e suite and both sim commands were rerun on d53caea itself, with a clean tree. The earlier runs had predated a comment-only edit to `mod.rs` and `editor.rs`. Signed-off-by: Florentin Dubois <[email protected]>
FlorentinDUBOIS
added a commit
that referenced
this pull request
Sep 28, 2026
…h the request lifecycles (#1656) ## Summary Writes up the hot-path zero-copy and system-call work merged between 2026-09-26 and 2026-09-28, and rewrites the request lifecycle documentation so it describes the code as it now stands. The work covers the access logs, the request id, `TCP_INFO`, `ClusterId`, the H1 header editor, the H2 output queue and HPACK codec, the read and write paths, accept and close, session setup, and the drain loop. The new document says what changed, how it works, why it was done, and what was measured before and after each change. The lifecycle documents now say, for UDP, TCP, H1, H2 and the mux, which system calls and allocations each step still pays on the nominal path. Documentation and comments only: every changed `.rs` line is a comment (`git diff origin/main -- '*.rs' | grep '^[-+]' | grep -vE '^[-+]\s*(//|\*|$)|^(\+\+\+|---)'` prints nothing), and no production code, test or dependency changes. ## Files | File | Why | |---|---| | `doc/hot_path_zero_copy.md` (new) | Campaign document. §1 goal and rules; §2 method (fixed scenario, instruments) and the closing measurement; §3 one section per theme, each with its mechanism, rationale, before/after figures and PRs; §4 correctness and safety fixes found along the way; §5 invariants and the tests that hold them; §6 the 66 PRs merged in the window. | | `doc/lifetime_of_a_session.md` | Rewritten: event loop, accept, TLS, PROXY pre-flight, the H1, H2, TCP and UDP lifecycles, the mux session, close, soft stop and GOAWAY. Each protocol has a table of the system calls and allocations still paid on the nominal path. | | `lib/src/protocol/udp/LIFECYCLE.md` | Removes the `SelectBackend` / `BackendResolved` round trip, which no longer exists, and adds a §13 per-datagram cost table. Citations converted to symbols. | | `lib/src/protocol/mux/LIFECYCLE.md` | Adds §12, what a request costs on the nominal path. Converts the last five line citations outside pinned blocks, corrects the "cross-client" wording, and replaces `Router::connect` with `Router::plan_connect`. | | `lib/src/protocol/kawa_h1/LIFECYCLE.md` | 23 line citations converted to symbols. The §2.1/§2.2 wording from #1655 is kept. | | `doc/h2_mux_internals.md` | Corrects the "cross-client" wording in three places. The pinned blocks are unchanged. | | `CHANGELOG.md` | Corrects the "cross-client" wording in the #1627, #1631 and #1632 entries, and adds a `docs` entry. | | `doc/README.md` | Links the new document. | | `doc/architecture.md`, `CLAUDE.md` | Both still described `file.rs:LINE` citations, and `CLAUDE.md` still pointed at the stale `lifetime_of_a_session.md`. | | `doc/udp_simulation.md`, `doc/testing.md` | Describe the `ChangeBackendSet` action that replaced `BackendResolved` in the UDP simulator. | | comments in `lib/src/{http,https}.rs`, `lib/src/protocol/mux/{mod,h2,stream}.rs`, `lib/src/udp.rs`, `lib/src/protocol/udp/{flow,manager}.rs` | Section references into the rewritten `lifetime_of_a_session.md` (the close path is now §11), the retired UDP `SelectBackend` / `BackendResolved` round trip, and the frontend-connection scope of a shared H2 backend connection. Line counts unchanged, so no pinned block moves. | ## Closing measurement Measured on 2026-09-28. Two release binaries (`--no-default-features --features crypto-ring,opentelemetry,splice,simd`, glibc malloc), one built at `b5169d44` and one at `c086b456`, run interleaved pass by pass with two repetitions each. During the intentrace passes the one-minute load average was 10.7–24.9 in the first repetition and 2.7–8.5 in the second for the scenarios without keep-alive, and 1.5–2.9 for the keep-alive ones. Setup: one worker, a `file://` access log, a `python3 -m http.server` backend on loopback (an HTTP/1.1 variant for the keep-alive rows), `curl`, N = 20. Instruments: system calls with `intentrace -p <worker>`, ANSI codes stripped and counted on the system-call name field, cross-checked by an `LD_PRELOAD` descriptor tracer; allocations with an `LD_PRELOAD` malloc counter. Figures are per request; ranges are the two repetitions. | Scenario | System calls (intentrace) | Heap operations | Bytes requested | |---|---|---|---| | H1, one request per connection | 26.25–26.70 → **18.45–18.85** | 83.65–83.85 → **39.95–40.35** | 84 327–84 445 → **15 793–16 069** | | H1 keep-alive, 20 requests | 14.75 → **9.65** | 50.80 → **7.80** | 8 362 → **1 322** | | H1 keep-alive over TLS | 15.75 → **10.70** | 63.30 → **20.25–20.30** | 10 644–10 680 → **3 638–3 640** | | H2 over TLS, one request per connection | 61.25–61.60 → **40.15–40.75** | 412.15–413.90 → **240.60–241.75** | 137 094–137 857 → **47 559–47 963** | | H2 over TLS, 20 streams on one connection | 25.05 → **13.55** | 83.40–83.90 → **41.15–42.00** | 11 021–11 029 → **4 792–4 825** | | TCP relay (splice) | 39.00–39.10 → **36.05–36.15** | 31.45 → **14.45** | 4 068 → **3 778** | **Baseline limit.** `b5169d44` was the first release-build baseline. It already included #1552, #1553, #1557, #1558, #1561, #1565, #1568, #1578 and #1581, so their gains are not in this table; each is given, with its own figures, in its section of the document. All other per-PR figures come from the PR descriptions. UDP was not traced: its costs are read from the code and labelled as such. The TLS rows include 15 `getrandom(2)` per handshake, which comes from `crypto-ring`. That is the default provider (`bin/Cargo.toml`, `lib/Cargo.toml`, the Dockerfile, the RPM and Arch packages), so default builds pay it; a `crypto-aws-lc-rs` build issues none on this path (§3.13). Earlier reference points: the campaign's first map (2026-09-26, `LD_PRELOAD` interposer on a debug build, `stdout` access log) counted about 25.1 system calls per H1 request and 34.8 per H2 request, and undercounted because it did not interpose `fcntl` or `recv`. The 106.25 → 25.35 figure is the `tcp://` access-log pass of #1552, measured on its base `ca058989`. ## Doc/code contradictions corrected - Reusing a keep-alive backend involves no liveness probe. What exists is a replay on a fresh connection (`ReplayOnFreshBackend`). - `TcpSession::shutting_down` answers `true`: a TCP session is closed on the first soft-stop pass. It has done so since `be5dd44b` (2020-01-10). - The UDP soft stop is `UdpProxy::notify`'s `SoftStop` arm, not `shutting_down`, and it is active: `Drain`, then `close_all_flows` on every listener session, then the listener sockets are deregistered. - An H1 backend EOF is read by a later `readable` since #1606, not together with the last bytes. - `backend.pool.size` is incremented in `Mux::dial_backend`. - A new UDP flow also costs three `fcntl`, a `getsockname` and a `getpeername` in `udp_connect`, even in release builds. - The UDP simulator's `BackendResolved` action is now `ChangeBackendSet`. - The UDP LIFECYCLE described a `SelectBackend` / `BackendResolved` round trip that no longer exists; selection is done in the core. - `Router::connect` (removed) was cited instead of `Router::plan_connect`. Two code comments in `lib/src/protocol/mux/h2.rs` still name it; they are left for a later change. - An H2 backend connection belongs to one `Mux` session and carries only the streams of one frontend connection. The #1627, #1631 and #1632 entries called it shared by several clients. Another user is reachable only behind an intermediary that multiplexes users on one frontend connection. - Drifted citations: `h2.rs:1439` now pointed at an empty `///` line, and `https.rs:1065` no longer pointed at the shutdown write-up. ## Open question **TCP soft stop.** On soft stop, a TCP relay session is closed on the first pass, with whatever bytes it still has in flight and no drain of its own. The documentation states this without calling it a bug; whether it is the intended behaviour is for the maintainers to decide. ## Also reflected - #1654 (#1647): a draining H2 session waits for a header block still arriving or for a request awaiting its backend link, and a forced close is preceded by a final `GOAWAY(NO_ERROR)`. - #1655 (kawa 0.7.2): the #1651/#1653 guards are described as shipped and now defense in depth. Their `content_length_invalid` counters stay at zero unless kawa regresses. ## Validation - `python3 .github/scripts/check_doc_citations.py --self-test` → exit 0 - `python3 .github/scripts/check_doc_citations.py --root .` → exit 0 (54 line citations, 794 test names, 15 pinned blocks) - `python3 .github/scripts/check_doc_citations.py --root . --base origin/main` → exit 0 ("none of the 87 cited lines compared against f5136d6 changed their text") - `python3 .github/scripts/check_doc_citations.py --audit --root .` → exit 0. It reports 3 advisory findings, all in files this PR does not touch (`doc/configure_admin_ops.md`, `lib/src/protocol/proxy_protocol/LIFECYCLE.md`). - `cargo +nightly fmt --all -- --check` → exit 0 - `cargo build --locked` → exit 0 - `RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --locked` → exit 0 - Relative markdown links in the touched files were checked with a script: 0 broken. CI has no markdown link checker. Signed-off-by: Florentin Dubois <[email protected]>
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.
Closes #1564
BackendRegistry::id_for(lib/src/protocol/mux/mod.rs) runs once per backend connection a mux session opens, and copiedBackend::backend_idinto a freshRc<str>each time even thoughinternhad already reused the backend's slot.Change
Each registry slot is now a private
RegistryEntry { handle, backend_id: Rc<str>, address }. TheRc<str>and the address are read once, when the session first interns the backend, andid_forclones them: a redial is a reference-count increment and no longer borrows theRefCell. The cache cannot go stale: neither field is written afterBackend::new, and a reload that replaces a backend builds a newRc, which takes a new slot with its own entry (the slot semantics are unchanged).Measured
Counting global allocator, 64 redials of each of two already-interned backends (
a_redial_of_an_interned_backend_allocates_nothing):The first dial of a backend in a session still copies its id once (plus the table's own growth).
Why not
Backend::backend_id: Rc<str>That would also remove the once-per-session copy, but it changes a public field of
sozu_lib::backends::Backend. Trying it breaks 14 sites inlib/alone (backends.rs,health_check.rs,udp/health.rs,tcp.rs,load_balancing.rs,mux/mod.rs) before the tests ande2e/are even compiled. The registry-local cache removes every per-dial allocation without touching that API.Prior art, both allocating the identity once on the control plane and reading it by reference on the hot path:
cloudflare/pingora@4487f7b2, 2026-09-11):pingora-load-balancing/src/lib.rs:172-190definesBackendas address, weight andExtensions, with no string id; the membership is published as a sharedArc<BTreeSet<Backend>>(lib.rs:581) built when discovery updates, not per request.haproxy/haproxy@0ceb8c65, 2026-09-25):struct servercarrieschar *id(include/haproxy/server-t.h:389),strduped once at config parse (src/server.c:3772) and read in place when a log line renders%s(src/log.c:4667).Tests
sozu-lib's unit-test binary now installs a thread-local counting allocator (lib/src/lib.rs,test_allocations, same shape aslib/tests/backend_selection.rs), becauseid_foris private and unreachable from an integration test. It is that binary's only global allocator: the local drain'ssteady_state_emission_does_not_allocate(#1561, merged meanwhile) moves onto it from its own private#[global_allocator], which cannot coexist with a second one (the merge withe123d736failed withcannot define multiple global allocatorswithout a textual conflict). Its zero-allocation assertion is unchanged; seen red at 2400 allocations with theentry(cluster_id.to_owned())lookup restored, green without. Documented indoc/testing.md§2 andLIFECYCLE.mdinvariant 14. The new type shiftsmod.rs, so 24mod.rs:NNNcitations inLIFECYCLE.mdanddoc/testing.mdare re-anchored to the same text in the same function.Local runs, each command on its own with its exit code read directly:
cargo build --locked --no-default-features --features crypto-ring,opentelemetry,splice,simd: exit 0cargo +nightly fmt --all -- --check: exit 0cargo clippy(same features)--all-targets -- -D warnings: exit 0cargo test(same features)-p sozu-lib(1164 unit tests),-p sozu,-p sozu-e2e -- --skip tests::fuzz_tests::(449 passed): exit 0 on thee123d736rebase; not rerun after the rebase onto57c92699because LOAD1 was above 8 (27.8, then 30.4)cargo test --locked -p sozu-command-lib(without those features, which the crate does not declare): exit 0RUSTFLAGS="--cfg tokio_unstable"cargo test -p sozu-simandcargo clippy -p sozu-sim --all-targets -- -D warnings: exit 0check_doc_citations.py--self-test,--root .,--base 57c92699,--audit --root .: exit 0 (the audit's 7 advisory findings are all in files this PR does not touch)RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --locked: exit 0Out of scope, noted for a follow-up: the dial path still allocates in
Mux::dial_backend(backend.backend_id.to_string()for the gauge label,cluster_id.to_owned()) and inRouter::backend_from_request((*dialed.backend.backend_id).to_owned()into the stream context), and the reused-connection branch ofRouter::decide_after_gateallocates twoStrings of the backend id per request.Signed-off-by: Florentin Dubois [email protected]