Skip to content

docs: document the hot-path zero-copy and syscall campaign and refresh the request lifecycles - #1656

Merged
FlorentinDUBOIS merged 1 commit into
mainfrom
docs/hot-path-campaign
Sep 28, 2026
Merged

FlorentinDUBOIS merged 1 commit into
mainfrom
docs/hot-path-campaign

Conversation

@FlorentinDUBOIS

@FlorentinDUBOIS FlorentinDUBOIS commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

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

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

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]

…h the request lifecycles

Record the work merged from 2026-09-26 to 2026-09-28 that cut the system
calls and heap allocations a worker pays per request, and bring the
request lifecycle documentation back in line with the code.

- doc/hot_path_zero_copy.md (new, linked from doc/README.md): goal and
  rules, the measurement method (intentrace, an LD_PRELOAD descriptor
  tracer and allocation counter, crate::test_allocations), one section
  per change with its before/after figures and pull requests, the
  correctness and safety fixes found along the way, the invariants and
  the tests that hold them, and the list of pull requests.
- A closing measurement, taken on 2026-09-28 with release binaries at
  b5169d4 and c086b45 interleaved (crypto-ring, one worker, file://
  access log, python backend, curl, N=20, intentrace), per request:
  H1 26.25-26.70 -> 18.45-18.85 system calls, 83.65-83.85 -> 39.95-40.35
  heap operations; H1 keep-alive 14.75 -> 9.65 and 50.80 -> 7.80; H2 over
  TLS 61.25-61.60 -> 40.15-40.75 and 412.15-413.90 -> 240.60-241.75; H2
  multiplexed 25.05 -> 13.55; TCP relay 39.00-39.10 -> 36.05-36.15.
- doc/lifetime_of_a_session.md, rewritten: event loop, accept, TLS,
  PROXY pre-flight, the H1, H2, TCP and UDP lifecycles, close, soft stop
  and GOAWAY, with the system calls and allocations each step still pays.
  It corrects three statements the code contradicted: a reused keep-alive
  backend gets no liveness probe, a TCP session is closed on the first
  soft-stop pass, and a UDP listener is drained by UdpProxy::notify's
  SoftStop arm rather than by shutting_down.
- The H2 soft stop follows #1654 (#1647): a draining session waits for a
  header block still arriving or a request awaiting its backend link, and
  a forced close is preceded by a final GOAWAY. The TCP soft stop is
  described as it has behaved since be5dd44 (2020-01-10).
- The H1 smuggling fixes (#1651, #1653) are described as shipped: kawa
  0.7.2 (#1655) fixes both upstream, the guards stay as defense in depth,
  and their content_length_invalid counters stay at zero unless kawa
  regresses.
- lib/src/protocol/udp/LIFECYCLE.md: drop the SelectBackend /
  BackendResolved round trip that no longer exists (selection moved into
  the core), and add a per-datagram cost table.
- lib/src/protocol/mux/LIFECYCLE.md: a section on what a request costs on
  the nominal path; a stale Router::connect reference is now
  Router::plan_connect.
- CHANGELOG, mux LIFECYCLE, h2_mux_internals: an H2 backend connection
  belongs to one Mux session and carries the streams of one frontend
  connection only; the #1627, #1631 and #1632 entries no longer call it
  shared by several clients. A Documentation entry is added.
- Line citations in the touched documents (lifetime_of_a_session, the
  UDP, kawa-H1 and mux LIFECYCLE files) are now symbol citations; pinned
  code blocks keep their verified line ranges.
- Comments only in lib/src (http.rs, https.rs, mux/mod.rs, mux/h2.rs,
  mux/stream.rs, udp.rs, udp/flow.rs, udp/manager.rs): section references
  into the rewritten lifetime_of_a_session.md (the close path is now its
  section 11), the retired UDP SelectBackend / BackendResolved round trip,
  and the frontend-connection scope of a shared H2 backend connection.
  doc/udp_simulation.md and doc/testing.md describe the ChangeBackendSet
  action that replaced BackendResolved in the UDP simulator.

Documentation and comments only: every changed .rs line is a comment, no
production code, test or dependency change.

Signed-off-by: Florentin Dubois <[email protected]>
@FlorentinDUBOIS
FlorentinDUBOIS merged commit b3f2c78 into main Sep 28, 2026
28 checks passed
@FlorentinDUBOIS
FlorentinDUBOIS deleted the docs/hot-path-campaign branch September 28, 2026 13:27
FlorentinDUBOIS added a commit that referenced this pull request Sep 28, 2026
…ight (#1660)

## What

`udp_connect` (`lib/src/socket.rs`) opens the connected upstream socket of every new UDP flow and every UDP health probe. It created the socket blocking, set `O_NONBLOCK` with an `fcntl(F_GETFL)`/`fcntl(F_SETFL)` pair, and then issued an `fcntl(F_GETFL)`, a `getsockname(2)` and a `getpeername(2)` whose only consumers are `debug_assert!`s. Release builds therefore paid for them too.

- On Linux the socket is created with `SOCK_NONBLOCK` through socket2's `Type::nonblocking`. `Socket::new` already adds `SOCK_CLOEXEC` on Linux (`set_common_type`), so no `.cloexec()` is needed. Other platforms (macOS paths exist in `socket.rs`) keep `set_nonblocking`, behind `#[cfg(not(target_os = "linux"))]`.
- The post-condition block (non-blocking, family, concrete source port, peer pinned to the backend) runs under `#[cfg(debug_assertions)]`. Its behaviour in debug builds is unchanged.

## Measurement

Method: release build (`cargo build --release -p sozu`), 1 worker, a UDP listener on `127.0.0.1:25353`, a cluster with one Python echo backend, `responses = 1`, `affinity_key = SOURCE_IP_PORT`, and 5 client flows, each on a new source port. `intentrace -p <worker pid>` ran on the worker, with the ANSI codes stripped. Counts are keyed on the syscall-name field, and the per-flow sequence is cut from `socket` to the next `epoll_ctl`. Kernel 7.2.7, x86_64.

| | per new flow (`udp_connect` + registration) | whole 5-flow trace |
|---|---|---|
| before (`f5136d67`) | `socket bind fcntl fcntl connect fcntl getsockname getpeername epoll_ctl(ADD)`: **9** (×5) | 99 syscalls (`fcntl` 15, `getsockname` 5, `getpeername` 5) |
| after | `socket bind connect epoll_ctl(ADD)`: **4** (×5) | 74 syscalls (the other families are unchanged: `recvfrom` 15, `sendto` 10, `epoll_ctl` 10, `close` 5) |

intentrace names the two first `fcntl`s `operation #3` (`F_GETFL`) and `#4` (`F_SETFL`), and the third `#3`.

## Test

`socket::tests::udp_connect_is_born_nonblocking_and_skips_release_queries` installs a seccomp user-notification filter on a dedicated thread only, without `TSYNC`. The filter watches `fcntl`, `getsockname` and `getpeername`. The test thread counts each notification and lets the call through with `SECCOMP_USER_NOTIF_FLAG_CONTINUE`, so `udp_connect` still sees the real kernel answers. The expected counts are `[0, 0, 0]` in release and `[1, 1, 1]` in debug. The test then checks `O_NONBLOCK` and `FD_CLOEXEC` with `fcntl` on the returned socket, a non-zero local port and `peer_addr() == backend`. It needs Linux ≥ 5.8 on a 64-bit target and fails loudly if seccomp is unavailable.

Red/green, run locally:
- fix reverted (`udp_connect` from `origin/main`), debug: `left: [3, 1, 1] right: [1, 1, 1]`, FAILED
- fix reverted, `--release`: `left: [3, 1, 1] right: [0, 0, 0]`, FAILED
- fix kept but the socket born blocking (`Type::DGRAM` without `.nonblocking()`), `--release`: `the socket must be non-blocking`, FAILED. In debug, the existing `debug_assert!` in `udp_connect` fires first.
- with the fix, debug and `--release`: ok

CI runs `cargo test` in debug only, so the `[0, 0, 0]` release branch was exercised only locally (`cargo test -p sozu-lib --lib --release udp_connect_is_born`).

## Docs

- `lib/src/protocol/udp/LIFECYCLE.md` §13: the "new flow" row and the section intro, which said that no UDP scenario had been traced.
- `doc/lifetime_of_a_session.md` §10: the per-new-flow bullet.
- `doc/hot_path_zero_copy.md` §3.14: the UDP bullet, which said UDP had not been traced beyond §3.10.
- `CHANGELOG.md`: a `perf(udp)` entry under Changed.

This branch was rebased on #1656 (`b3f2c787`), which introduced those §13/§10 cost descriptions.

## Validation (exit codes, on `0f54f6fe`)

- `cargo +nightly fmt --all -- --check`: 0
- `cargo build --locked`: 0
- `cargo build --all-features --locked`: 0
- `cargo clippy --all-targets --locked -- -D warnings`: 0
- `cargo clippy --all-targets --locked --no-default-features --features crypto-ring,opentelemetry,splice,simd -- -D warnings`: 0
- `cargo test --workspace --locked -- --skip tests::fuzz_tests:: --test-threads=8`: 0. This includes the 12 e2e `udp_tests` and `udp_health_descriptor_exhaustion`.
- `RUSTFLAGS="--cfg tokio_unstable" cargo test -p sozu-sim --locked --test udp_simulation`: 0 (6 passed)
- `python3 .github/scripts/check_doc_citations.py --self-test`: 0
- `python3 .github/scripts/check_doc_citations.py --root .`: 0
- `python3 .github/scripts/check_doc_citations.py --root . --base origin/main`: 0
- `python3 .github/scripts/check_doc_citations.py --audit --root .`: 0
- `RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --locked`: 0

Also checked, although not required: `cargo clippy --all-targets --locked --release -- -D warnings` exits 101 on errors that already exist on `main`. They are unused debug-only items in `lib/src/protocol/mux/{mod,router,debug,h2_header_reassembly,h2_stream_table}.rs`, and none of them is in a file this PR touches.

Not verified: the non-Linux path (`Type::DGRAM` + `set_nonblocking`) was not compiled here, because only `x86_64-unknown-linux-gnu` is installed.

Signed-off-by: Florentin Dubois <[email protected]>
FlorentinDUBOIS added a commit that referenced this pull request Sep 28, 2026
A raw TCP session paid one `getpeername(2)` per session for the access log's backend address, although Sōzu chose that address itself, and two `EPOLL_CTL_DEL` on close, each right before the socket's last `close(2)`, which removes it from the epoll set anyway. This PR removes all three: 36.10–36.25 → 33.05–33.10 syscalls per session.

## Measured

Release worker (`--no-default-features --features crypto-ring,opentelemetry,splice,simd`), `worker_count = 1`, one TCP listener to a `python3 -m http.server` backend, N=20 sequential `curl` sessions (one connection each), two passes per instrument. Same config and scenario on both sides; only the binary differs (`f5136d67` vs this branch). LOAD1 3.35–4.09 on every pass; 20/20 responses 200 on every pass.

| per session | before (`f5136d67`) | after |
|---|---|---|
| total, `intentrace -p` (aligned window, first `accept4` to last `close`) | 36.25 / 36.10 | **33.10 / 33.05** |
| total, `LD_PRELOAD` descriptor tracer | 38.30 / 37.30 | **33.85 / 34.35** |
| `getpeername` | 1.00 | **0** |
| `epoll_ctl` | 4.00 (40 ADD + 40 DEL) | **2.00** (40 ADD) |
| `accept4` ×2, `socket`, `connect`, `setsockopt`, `pipe2` ×2, `fcntl` ×4, `shutdown` ×2 (`how=2`), `getsockopt` ×2, `close` ×6 | | unchanged |
| `splice`, `epoll_wait` | 6.10–8.20, 3.95–4.10 | 6.05–7.20, 3.95–4.10 (timing noise) |

Per-session sequence before: `accept4` ×2, `epoll_ctl ADD`, `pipe2` ×2, `fcntl` ×4, `epoll_wait`, `socket`, `connect`, `setsockopt`, `epoll_ctl ADD`, `epoll_wait`, `splice`…, **`getpeername`** (backend fd, same inode as the `connect`), `getsockopt` ×2, `shutdown(front)`, **`epoll_ctl DEL` ×2**, `shutdown(back)`, `close` ×6. After: the same without the three bold calls.

Leak check: the worker holds 14 descriptors before and after 1000 further sessions, on both binaries, 1000/1000 answered 200. The access log's backend address reads `127.0.0.1:45080` on both.

Method: the descriptor tracer is the campaign's `fdtrace.so`, extended with `getpeername`/`getsockname`/`getsockopt`/`setsockopt` and self-tested on a C program issuing exactly 3 `getpeername`. The two instruments agree on every deterministic family.

## `getpeername`

`Pipe::get_backend_address` was the only caller of `peer_addr()` on the backend socket, used only by `Pipe::log_request` (access log). It now returns a `backend_address` field recorded when the backend was chosen:

- WebSocket upgrades (`HttpSession::upgrade_mux`, `HttpsSession::upgrade_mux`): `Pipe::new` takes it from the `Backend` those paths already pass.
- Raw TCP: `TcpSession::connect_to_backend` records the dialed `backend.address` and hands it to the `Pipe` through `Pipe::set_backend_address`, directly when the state is already `Pipe`, or at each upgrade to `Pipe` (`upgrade_send`, `upgrade_relay`, `upgrade_expect`, `build_pipe_from_preread`). A retry after a failed connect dials again and overwrites the address, so the log reports the backend actually retried.

Value: for a connected backend, identical (`getpeername` returns the address `connect` was given). The one difference: a backend still connecting (SYN_SENT) or already reset (CLOSE) made `getpeername` fail with `ENOTCONN`, and the log showed no address. It now shows the dialed address, which is what the HTTP mux already logs (`Router`, `context.backend_address = Some(dialed.backend.address)`). No caller needs the kernel's view of a connected peer. `TcpSession::backend` stays `None` as before (populating it would change `dec_connections` accounting).

## Close: `EPOLL_CTL_DEL` removed, `shutdown(Shutdown::Both)` kept

`TcpSession::close` (front) and `TcpSession::close_backend` (back) no longer deregister, as #1567 did for HTTP/HTTPS (#1568 deliberately left TCP untouched).

- **Peer-visible behaviour is identical.** A deregister is local to the epoll instance. The `shutdown(2)` calls (both `Shutdown::Both`, both kept), their order, the `close(2)` calls and the socket options (no `SO_LINGER` is set) are unchanged, so FIN, RST on unread data and bytes in flight are unchanged. The trace confirms: same two `shutdown how=2`, same six `close`, same order.
- **Each socket's last close precedes the next `epoll_wait`.** From `close()`: `shut_down_sessions_by_frontend_tokens` is the only caller and drops the session in the same pass. From the connect retry in `TcpSession::ready_inner`: `connect_to_backend` either succeeds and `set_back_socket` drops the old socket immediately (every state's `set_back_socket` is a plain assignment), or fails, and `handle_connection_result` maps every `Err` to `SessionResult::Close`, which kills the session in the same pass. So a freed slab token cannot receive a stale event.
- **No duplicate.** No `dup`/`try_clone` of a session socket, no worker fork, SCM_RIGHTS carries listeners only; mio 1.x keeps no per-source state that a deregister would release (same argument as #1568).

## Tests (each seen red, then green)

- `protocol::pipe::tests::backend_address_is_reported_without_asking_the_socket`: a `Pipe` whose backend socket was refused (nothing listens on its port; on loopback it is reset before the assertion) must still report the backend's address, then the address a later `set_backend_address` gives. Red with `get_backend_address` restored to `peer_addr()`: `left: None, right: Some(127.0.0.1:43841)`.
- `tcp::…::a_dialed_pipe_reports_the_backend_address_it_was_given`: an expect-proxy session, once its header is parsed and its backend dialed, reports the dialed address. Red without the `set_backend_address` call in `connect_to_backend`: `left: None, right: Some(127.0.0.1:33845)`.
- `tcp::…::a_send_proxy_protocol_pipe_reports_the_dialed_backend_address`, `…::a_relay_proxy_protocol_pipe_reports_the_dialed_backend_address`, `…::an_sni_preread_pipe_reports_the_dialed_backend_address`: the three paths that dial **before** the `Pipe` exists (send, relay, SNI preread), each upgraded through `TcpSession::upgrade` and checked on `Pipe::get_backend_address` (the access-log value). Added after the adversarial review found two surviving mutations, because the expect test dials from the `Pipe` and masks the upgrade hand-over:
  - A1, `TcpSession::set_backend_address` records nothing: all three red (and the expect test), `left: None, right: Some(127.0.0.1:…)`.
  - A2, the upgrades copy `None`: all three red; applied per site, `upgrade_send` reds only the send test, `upgrade_relay` only the relay test, `build_pipe_from_preread` only the preread test.
  - Green once restored.
- `tcp::…::closed_tcp_sessions_leave_their_sockets_to_close`: reads the kernel's epoll table from `/proc/self/fdinfo`; after `close()` both sockets are still watched (no DEL), after the session drops both are gone (the close removed them, no leak). Red with the front deregister put back ("TcpSession::close must not deregister a front socket…"), and separately with the backend one put back ("TcpSession::close_backend must not deregister a backend socket…").

## Docs

- `doc/lifetime_of_a_session.md`: §9 (TCP lifecycle) documents the backend address and adds the #1657 columns to its per-connection table; §11 extends the no-deregister argument to TCP (including the retry path).
- `doc/hot_path_zero_copy.md`: §3.10 entry and a note under the §2.3 closing table.
- `doc/rate-limit-design.md`: five `lib/src/tcp.rs:NNN` citations shifted by this change are replaced with symbols.
- `CHANGELOG.md`: entry under Changed.

Rebased on #1656 (`b3f2c787`), code unchanged (patch-id outside `*.md`/`CHANGELOG.md` identical to the first push `a1da6095`). The TCP table #1656 added to `doc/lifetime_of_a_session.md` §9 gains #1657 before/after columns next to the untouched closing-measurement column, §11 gains the TCP close paragraph, and `doc/hot_path_zero_copy.md` gains a §3.10 entry and a note under the §2.3 closing table (its figures unchanged). No conflict with the UDP `udp_connect` work.

Out of scope, recorded for the campaign: `SplicePipe::new` per session costs `pipe2` ×2 + `fcntl` ×4 + `close` ×4 = 10 syscalls (≈30 % of what remains).

## Commands run (all exit 0)

- `cargo +nightly fmt --all -- --check`
- `cargo build --locked`
- `cargo build --all-features --locked`
- `cargo clippy --all-targets --locked -- -D warnings`
- `cargo clippy --all-targets --locked --no-default-features --features crypto-ring,opentelemetry,splice,simd -- -D warnings`
- `cargo test --workspace --locked -- --skip tests::fuzz_tests:: --test-threads=8`: sozu-lib 1333 passed after the three path tests (1330 before), e2e 490 passed (215 TCP/proxy-protocol tests among them, 0 failed), no failure anywhere
- `python3 .github/scripts/check_doc_citations.py --self-test`, `--root .`, `--root . --base origin/main`, `--audit --root .`
- `RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --locked`

No protocol, wire, config or metric change. The only log change is the backend address now present on a not-yet-connected or reset backend, and the removed `error!` for a failed deregister.

Signed-off-by: Florentin Dubois <[email protected]>
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