Skip to content

perf(mux): stop waiting for a read EOF and shutting down closed peers - #1605

Merged
FlorentinDUBOIS merged 1 commit into
mainfrom
perf/close-path-syscalls
Sep 27, 2026
Merged

FlorentinDUBOIS merged 1 commit into
mainfrom
perf/close-path-syscalls

Conversation

@FlorentinDUBOIS

@FlorentinDUBOIS FlorentinDUBOIS commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1603

What changes

A backend EOF read with its last bytes no longer costs an epoll_wait round. An H1 backend read that returns (n > 0, Closed) now records Ready::HUP on that read (ConnectionH1::readable). The dead-backend check of Mux::ready_inner samples HUP at the top of each inner iteration, and the read armed the frontend, so the backend is closed on the pass's next inner iteration, after the bytes read with the EOF were parsed. Before, it waited for the EPOLLRDHUP edge the kernel had already queued for the same FIN, and the next epoll_wait returned at once only to deliver it. The new order is the one the pass already followed when EPOLLRDHUP arrived together with the last bytes (recv data, recv 0, close the backend, then forward to the client).

No shutdown(SHUT_WR) on a socket whose peer has closed. The four write-side shutdowns of the HTTP/HTTPS close paths (HttpSession::close, HttpsSession::close, Mux::close, the dead-backend sweep) go through protocol::mux::shutdown_write, which skips the call when:

  • the connection's readiness carries HUP (Connection::peer_closed: EPOLLRDHUP/EPOLLHUP, or the H1 backend EOF read above), or
  • on a TLS frontend, a read met the client's EOF or close_notify (FrontRustls::peer_disconnected), which no epoll event reports when the close follows in the same pass.

A backend sozu drops on its own (force_disconnect, BackendStatus::Disconnecting) writes HUP into a live backend's readiness, so it is excluded and keeps its shutdown.

Why skipping the shutdown is safe

None of these descriptors is shared (no dup/try_clone/fork, see doc/lifetime_of_a_session.md §9), so the close(2) that follows is the last one. Linux's tcp_close then sends the FIN after the queued bytes itself when the receive queue is empty, or a RST when it is not, with or without a prior shutdown(SHUT_WR). A peer that half-closed and is still reading therefore still receives its FIN; the tests check exactly that. What goes away is a syscall that, after an H2 client's close_notify, failed with ENOTCONN on most connections.

HAProxy draws the same line: conn_sock_shutw (include/haproxy/connection.h, "don't perform a clean shutdown if we're going to reset or if the shutr was already received") skips shutdown(SHUT_WR) once CO_FL_SOCK_RD_SH records the read0.

What deliberately does not change

  • The TLS close_notify is kept, although the issue's first framing considered skipping it once the peer had closed. RFC 8446 §6.1: "Each party MUST send a "close_notify" alert before closing its write side of the connection, unless it has already sent some error alert. This does not have any effect on its read side of the connection." TLS 1.3 only dropped the obligation to answer a close_notify immediately. HAProxy keeps it too: h2_release (src/mux_h2.c) and h1_shutw_conn (src/mux_h1.c) call conn_xprt_shutw unconditionally, and only clean=0 makes ssl_sock_shutw quiet. On a reset peer FrontRustls::socket_write already short-circuits on peer_reset, so the remaining close_notify write is exactly the case the RFC requires. The one real -1 writev left would be sending GOAWAY and close_notify in one write_tls, which is h2.rs work (out of scope while fix(mux-h2): keep reading after a stream is reaped mid DATA payload #1599 is open there).
  • Frontend reads do not record HUP, unlike the issue's proposal to do it in update_readiness_after_read. Over TLS a frontend Closed can be a close_notify on a TCP stream that is still open (rustls_socket_read answers Closed as soon as rustls has seen it), which the kernel does not report as read-closed, and a frontend HUP closes the whole session at the top of the next pass. The EOF round this issue measured was on the backend.
  • H2 backends still close on the EPOLLRDHUP edge: the equivalent change belongs in h2.rs (left untouched because of fix(mux-h2): keep reading after a stream is reaped mid DATA payload #1599).
  • Half-close handling is unchanged: a frontend HUP from epoll already closed the session before this change.

Measurements

Release build, one worker, python http.server backend, 20 sequential requests each on its own connection, LD_PRELOAD fd tracer and intentrace -p (ANSI stripped, anchored on the syscall name), LOAD1 < 8, f165a3dc before, this branch after.

before after
H1 fdtrace shutdown/req 2.00 0.05
H1 fdtrace epoll_wait rounds delivering an EOF already read 3 0
H1 fdtrace total/req 23.55 21.45
H1 intentrace shutdown/req 2.00 0.00
H1 intentrace total/req 22.80 21.00
H2 fdtrace shutdown/req 2.00 (15 ENOTCONN) 1.00 (1 ENOTCONN)
H2 fdtrace epoll_wait rounds delivering an EOF already read 9 0
H2 intentrace shutdown/req 2.00 0.00
H2 intentrace total/req 43.95 41.90

The EOF round is timing-dependent (12 of 20 H1 requests in the measurement that opened the issue). The H2 fdtrace residual is the frontend shutdown on connections sozu closed on the client's GOAWAY before its close_notify arrived: the client is not yet known to have closed, so its shutdown is kept, and it succeeded (ret=0) on 19 of 20. The GOAWAY write (len=39) is present on all 20 H2 connections after the change.

Tests (each seen red first)

  • an_h1_backend_eof_read_records_hup_and_a_frontend_one_does_not (mod.rs)
  • a_backend_eof_read_with_its_last_bytes_closes_the_backend_in_the_same_pass (mod.rs): drives a real Mux::ready pass; the backend is gone after the pass and the client received the bytes read with the EOF.
  • mux_close_skips_the_backend_shutdown_once_the_backend_closed / mux_close_keeps_the_backend_shutdown_while_the_backend_is_there (mod.rs), counting shutdowns through shutdown_write; the peer observes the FIN in both, including a Disconnecting backend.
  • https_close_skips_the_frontend_shutdown_once_the_client_closed (both predicates) / https_close_keeps_the_frontend_shutdown_while_the_client_is_there (https.rs).

Docs: doc/lifetime_of_a_session.md §9, doc/h2_mux_internals.md, CHANGELOG.md; 27 line citations (37 drifted line references, range ends included) re-anchored to the same text in the same function (check_doc_citations.py --base f165a3dc… clean).

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

An H1 backend read that returns its last bytes together with the EOF now
records HUP on that read (`ConnectionH1::readable`). The dead-backend
check of `Mux::ready_inner` then closes the backend on the same pass,
after those bytes are parsed, instead of on the EPOLLRDHUP edge the
kernel had already queued for the same FIN, which cost one more
`epoll_wait` that returned at once. Frontend reads keep leaving HUP to
the event loop: over TLS their `Closed` can be a `close_notify` on a TCP
stream that is still open, and a frontend HUP closes the session.

Every write-side `shutdown(SHUT_WR)` of the HTTP and HTTPS close paths
now goes through `protocol::mux::shutdown_write`, which skips it once the
peer has closed: HUP in the connection's readiness
(`Connection::peer_closed`) or, on a TLS frontend, a read that met the
client's EOF or `close_notify` (`FrontRustls::peer_disconnected`). A
backend sozu drops itself (`BackendStatus::Disconnecting`) keeps its
shutdown. The `close(2)` that follows is the descriptor's last, so Linux
sends the same FIN, or RST over unread data, with or without the
shutdown; after the client's `close_notify` the call only failed with
ENOTCONN. HAProxy skips the socket shutdown on the same condition
(`conn_sock_shutw`). The TLS `close_notify` is kept, as RFC 8446 §6.1
requires before the write side closes.

Release build, one worker, 20 requests on 20 connections, LD_PRELOAD fd
tracer: H1 shutdown 2.00 -> 0.05 per request, EOF-only epoll_wait rounds
3 -> 0; H2 shutdown 2.00 -> 1.00, ENOTCONN 15 -> 1. intentrace -p: H1
and H2 shutdown 2.00 -> 0.00.

Closes #1603

Signed-off-by: Florentin Dubois <[email protected]>
@FlorentinDUBOIS
FlorentinDUBOIS merged commit 13269c5 into main Sep 27, 2026
28 checks passed
@FlorentinDUBOIS
FlorentinDUBOIS deleted the perf/close-path-syscalls branch September 27, 2026 00:11
FlorentinDUBOIS added a commit that referenced this pull request Sep 27, 2026
…AGAIN (#1606)

Closes #1602

## What

Every read path kept calling `recv(2)` until EAGAIN, even after a `recv` that returned fewer bytes than it was offered. On a stream socket that short read already proves the receive queue is empty, so the next `recv` could only answer EAGAIN.

- `tcp_socket_read` now issues one read per call through a new private `plain_socket_read`, generic over `Read` (like `rustls_socket_read`) so tests count every `recv`. A short read answers `(n, WouldBlock)` — what the old loop answered one EAGAIN later. A read that fills the buffer is **not** a short read and answers `Continue`. The loop disappears, and so does its breaker counter `socket.read.infinite_loop.error` (removed from `names.rs` and `doc/configure.md`; operator-visible, noted in the CHANGELOG).
- `rustls_socket_read` wraps the stream in a `ShortReadProbe` that records the length `read_tls` offered (rustls returns only the count, `rustls-0.23.45/src/msgs/deframer/buffers.rs:208,220`). After a short read the pass makes no second `recv`, but still processes and drains what arrived, and still reports a `close_notify` that arrived with it: that `read_tls` returns `Ok(0)` without touching the socket (`rustls-0.23.45/src/conn.rs:768-770`), so it stays allowed.
- `update_readiness_after_read` (`lib/src/protocol/mux/mod.rs`) keeps READABLE after a short read once HUP was seen, so the next pass reads the EOF.

## Why it is safe

- **A new edge comes for new data.** mio registers every socket with `EPOLLET` (`mio-1.2.3/src/sys/unix/selector/epoll.rs:130`, `EPOLLIN|EPOLLRDHUP` at `:133`). `man 7 epoll` (man-pages 6.13): edge-triggered mode "delivers events only when changes occur on the monitored file descriptor, that is, an event will be generated upon each receipt of a chunk of data", and in the EPOLLET Q&A: "For stream-oriented files (e.g., pipe, FIFO, stream socket) ... if you call read(2) by asking to read a certain amount of data and read(2) returns a lower number of bytes, you can be sure of having exhausted the read I/O space for the file descriptor." `after_a_short_read_new_bytes_raise_a_new_edge` checks this on a real loopback socket registered with mio: short read, no pending event, new bytes raise a new READABLE event, and so does the FIN.
- **HUP already seen → read until EOF.** A FIN coalesced with the data raised its edge already; sozu folds it into `Ready::HUP` (`command/src/ready.rs`, `From<&mio::event::Event>`), merged with `|=` (`Mux::update_readiness`). No later event will announce the EOF, hence the exception in `update_readiness_after_read`. It cannot spin: the next read either returns bytes or `size == 0`, which drops READABLE (pinned by `a_short_read_after_hup_keeps_readable_to_read_the_eof`, `a_short_read_without_hup_drops_readable`, `an_empty_read_after_hup_still_drops_readable`). Same rule as HAProxy (`src/raw_sock.c`: `fd_cant_recv` when `ret < try`, then `goto read0` if `FD_POLL_HUP`) and tokio (`clear_readiness` when `0 < n < len`, `tokio-1.53.1/src/io/poll_evented.rs:211-213`, keeping closed states, `src/runtime/io/scheduled_io.rs:357-362`). A short read drains every byte before the FIN, so no data is ever left behind; only the EOF observation moves to the next pass.
- **Other callers.** They already handled `(n > 0, WouldBlock)` (it is what read-then-EAGAIN produced). The pipe records HUP in `ConnectionStatus` independently of any EOF read (`Pipe::frontend_hup`, `Pipe::backend_hup`), and closes through `check_connections` once flushed; `ExpectProxyProtocol`, the TLS handshake and the TCP preread close on HUP. Two comments (`pipe.rs`, `tcp.rs`) that said the tail was read "to EOF" are adjusted.
- **A full buffer is not a short read**: `a_full_plain_buffer_is_not_a_short_read`, `a_plain_body_ending_on_a_full_buffer_still_needs_its_eagain`.

## Honest limits

- **TCP urgent data (OOB).** The "a short read empties the queue" guarantee does not hold while a TCP urgent mark is queued: `recv` stops before the mark with bytes behind it. Reproduced on a real socket: `AAAA`, `send(B, MSG_OOB)`, `CCCC` raise one edge; `tcp_socket_read` answers `(4, WouldBlock)` with `AAAA`, no event follows for 300 ms, and `CCCC` stays in the kernel. A stream carrying OOB data (telnet, rlogin, FTP `ABOR`) can stall until the peer's next send. HAProxy and tokio behave the same, and sozu never read OOB data before either. Documented in the `plain_socket_read` doc-comment, `doc/lifetime_of_a_session.md` §2.2 and the CHANGELOG.
- The three e2e close-delimited tests (`test_h1_close_delimited_response_fully_delivered`, `test_h2_close_delimited_large_response`, `test_h2_large_h1_response_close_delimited`) pass **with and without** the HUP exception — I removed it and ran them: 3 passed. They do not discriminate it (the FIN most likely arrives in a separate event there). The exception is pinned instead by `data_and_fin_in_one_edge_keep_readable_until_the_eof_is_read`: on a real loopback socket registered with mio, data and FIN share ONE `(readable, read_closed)` edge, the short read answers `(4, WouldBlock)`, no event follows, READABLE survives `update_readiness_after_read`, and the next read answers `(0, Closed)`. It fails with the exception removed ("HUP was seen: READABLE must stay so the EOF is read") and passes with it.
- A pass does not remember a short read made by an earlier call, on purpose: an edge may have arrived in between and already been folded into the READABLE the mux kept. So the EAGAIN after a call whose buffer filled from the last short read's plaintext remains (`a_large_body_over_tls_arrives_intact` pins exactly 1). That is where most of the remaining H2 EAGAINs come from.

## Tests

Red then green: with the fix reverted (loop restored in `plain_socket_read`, probe ignored in rustls, HUP exception removed), 9 of the 27 targeted tests fail; with it, all pass. `close_notify_in_the_short_read_is_reported_in_the_same_call` fails on the naive variant that skips every `read_tls` after a short read. New plain-path tests: short read (1 recv, 0 EAGAIN), full buffer, FIN behind a short read, fragmented message, 1 MiB body (65 reads, 0 EAGAIN). New rustls tests: `close_notify` in the short read, FIN behind a short read, 64 KiB body. Two existing rustls tests encode the old count and are updated to the lower one (`a_large_buffer_drains_the_record_in_one_short_recv`: 2 → 1 reads; `a_fragmented_record_is_read_again_until_it_completes`: 2 → 1 and 3 → 2).

## Trade with #1603 (rebased on main `13269c5e`)

#1603/#1605 closed an H1 backend in the same pass when its last bytes and EOF came back from one `recv`. With a short read that `recv` is no longer issued, so:

- FIN in the kernel **before** `epoll_wait` returned: the edge carries HUP, the backend is still closed **in the same pass**;
- FIN landing **after** `epoll_wait` returned (READABLE without HUP): the backend is closed **one `epoll_wait` round later**, on the `EPOLLRDHUP` edge the FIN queued — and no later: that edge is already pending when the pass ends.

That is HAProxy's choice (`src/raw_sock.c:315-338`: stop on `ret < try`, let the poller report the EOF). The saved `recv` answers EAGAIN on every short read not followed by a FIN. Documented in the CHANGELOG, `doc/lifetime_of_a_session.md` §2.2 and the `ConnectionH1::readable` comment.

**The #1605 tests were rewritten, not removed or weakened** (commit `206a47b1`, each referencing #1606 and HAProxy):
- `an_h1_backend_eof_read_records_hup_and_a_frontend_one_does_not` keeps every assertion; the EOF is now met by the second `readable`, which records HUP on the backend and not on the frontend. Red when the HUP insertion in `h1.rs` is removed.
- `a_backend_eof_read_with_its_last_bytes_closes_the_backend_in_the_same_pass` covers the coalesced edge (READABLE|HUP), closed in the same pass. Red when `is_hup()` is dropped from `dead`.
- new `a_fin_after_epoll_wait_closes_the_backend_on_the_next_round_at_the_latest`, real loopback socket + mio: not closed in the first pass, RDHUP edge returned by a zero-timeout poll, closed on that round.

Note: the two intermediate commits of this branch do not pass those two #1605 tests; the branch head does. Squash-merge keeps `main` bisectable.

## Measurement

Release builds of main `13269c5e` (with #1605) and this branch, one worker, loopback, python backend that closes after each response (the #1605 scenario), 20 requests per scenario, LOAD1 < 2.

Syscalls per request:

| scenario | tool | total | `recv`/`recvfrom` | EAGAIN (run) | `epoll_wait` |
|---|---|---|---|---|---|
| H1 | fdtrace | 20.35 → 18.65 | 4.45 → 2.30 | 31 → 0 | 5.60 → 5.95 |
| H1 | intentrace | 20.65 → 18.85 | 4.00 → 2.00 | n/a | 4.55 → 4.75 |
| H2 | fdtrace | 35.25 → 34.35 | 10.70 → 9.45 | 88 → 68 | 8.45 → 8.65 |
| H2 | intentrace | 42.10 → 41.05 | 6.00 → 5.00 | n/a | 4.95 → 4.90 |
| H2 mux (1 conn) | fdtrace | 15.95 → 14.70 | 5.35 → 4.00 | 34 → 23 | 3.90 → 4.05 |
| H2 mux (1 conn) | intentrace | 16.45 → 15.45 | 4.10 → 3.10 | n/a | 3.10 → 3.10 |

The total drops in every scenario; `epoll_wait` rises slightly in H1 (the extra round above). `intentrace` does not decode `recvfrom` results, so the EAGAIN split comes from `fdtrace`. The first measurement against `f165a3dc` (before #1605): H1 recv 114 → 58, H2 236 → 171, multiplexed 136 → 84.

## Also

- The `FrontRustls::peer_addr` comment still described `HttpsSession::new` seeding the peer with `sock.peer_addr().ok()`; since #1593 it uses the address `accept(2)` returned. Corrected.
- `doc/lifetime_of_a_session.md` §2.2 and `doc/h2_mux_internals.md` describe the short-read stop; the mux `LIFECYCLE.md` and `doc/testing.md` citations shifted by the new lines in `mux/mod.rs` are re-anchored to the same text.

Signed-off-by: Florentin Dubois <[email protected]>
FlorentinDUBOIS added a commit that referenced this pull request Sep 27, 2026
…rite (#1608)

Closes #1607

## What changes

Closing an H2 frontend over TLS on its final GOAWAY cost two `writev(2)` back to back, in the same pass:

```
recv    fd=16 ret=48            <- the client's GOAWAY
writev  fd=16 ret=39 len=39     <- our GOAWAY: H2Shell::flush_zero_to_socket -> FrontRustls::socket_write -> write_tls
writev  fd=16 ret=24 len=24     <- close_notify: H2Shell::close -> drain_tls_close_notify -> write_tls
close
```

`FrontRustls::socket_write` runs `write_tls` right after handing rustls the plaintext, so the GOAWAY is on the wire before anyone can queue the alert behind it.

- New `SocketHandler::socket_write_then_close(buf)`. Default body: `socket_write`, then `socket_close` if the whole of `buf` was taken, which is what every other handler did already. `FrontRustls` overrides it: `writer().write(buf)`, then `send_close_notify()` only if all of `buf` was absorbed, then one `write_tls`, which rustls turns into one `write_vectored` over both records (`rustls-0.23.45/src/vecbuf.rs`, `ChunkVecBuffer::write_to`).
- `H2Shell::flush_zero_to_socket` uses it when `ConnectionH2::zero_flush_closes_connection()` holds: `Position::Server`, `H2State::GoAway` (only `goaway()` sets it, after serialising the final GOAWAY), `expect_write == Some(Zero)` (the zero-buffer resume, not a GOAWAY deferred behind a half-written stream frame, nor a WINDOW_UPDATE/RST_STREAM batch), no stream, no pending WINDOW_UPDATE or RST_STREAM, `close_notify_sent` unset. The writable arm of `GoAway` then closes; `H2Shell::close` finds nothing left to drain. `close_notify_sent` is set once the whole buffer was taken, so neither `initiate_close_notify` nor `drain_tls_close_notify` queues a second alert.

The `close_notify` stays mandatory (RFC 8446 §6.1) and still follows the GOAWAY on the wire; only the number of writes changes. rustls encrypts application data straight into its send buffer once the handshake is over, which it always is on a connection the mux drives, so the alert queued after the plaintext is the next record.

HAProxy (`0ceb8c65f`) keeps two writes on this path: `h2c_send_goaway_error` (`src/mux_h2.c:2504`) puts the GOAWAY in the mux buffer, the timeout path flushes it with `xprt->snd_buf` (`src/mux_h2.c:5540-5548`), and `h2_release` (`src/mux_h2.c:1607`) then calls `conn_xprt_shutw` (`src/mux_h2.c:1658`), whose `ssl_sock_shutw` (`src/ssl_sock.c:8001`) issues its own `SSL_shutdown` (`src/ssl_sock.c:8041`). There is no `h2_shutw` in that tree: `h2_do_shutw` (`src/mux_h2.c:5963`) and `h2_shut` (`src/mux_h2.c:6090`) handle a stream, not the connection.

## Measurements

Release build, one worker, python `http.server` backend, 20 sequential `curl --http2` requests each on its own TLS connection, LOAD1 < 8, `b19d94f8` before, this branch after. fdtrace = `LD_PRELOAD` fd tracer; intentrace = `intentrace -p`, ANSI stripped, anchored on the syscall name.

Initial measurement on `b19d94f8`: fdtrace `writev` 6.90/conn, `epoll_wait` 8.00/conn, total 33.80/conn; intentrace `writev` 6.00, `epoll_wait` 5.00, total 42.10.

| per 20 connections / per connection | before (4 fdtrace runs) | after (3 fdtrace runs) |
|---|---|---|
| close writes (`len=39`, `len=24`, `len=63`) | 35–40 | 20 |
| merged `len=63` writes | 0 | 17–19 |
| `writev` / conn | 6.85–7.15 | 6.05–6.30 |
| `epoll_wait` / conn | 8.00–8.30 | 8.00–8.40 |
| intentrace `writev` / conn | 6.00 (2 runs) | 6.00 |

The connections without a merged write closed on the client's HUP (`ev=5:2005`) before any GOAWAY was read: sozu sends the 24-byte alert alone there, before and after. Under `intentrace -p` every connection takes that path (`wrote 39 Bytes`: 0 on all three runs, `wrote 24 Bytes`: 20), because ptrace slows the worker enough for curl's GOAWAY, `close_notify` and FIN to all be queued when it wakes; so intentrace cannot see this change. `writev` also varies with how the response split (181 + 70 against 229, on 0 to 6 connections per run).

## H2 backends: nothing done for the EOF-as-HUP of #1605

#1605 records a backend EOF read with the last bytes as HUP for H1 backends. For H2 backends there is nothing measurable to gain, with or without #1606:

- A graceful backend close (GOAWAY, then FIN) never reads the EOF: `handle_goaway_frame` calls `goaway()`, which clears `expect_read`, and `ConnectionH2::force_disconnect`'s `Position::Client` arm sets `readiness.event = Ready::HUP` itself, so the backend is closed in the same pass.
- H2 reads are exact-sized (`H2ReadTarget::Fill { amount }`: 9 header bytes, then the payload). #1606's `plain_socket_read` answers `Continue` when `sz == buf.len()`, so a complete frame is not a short read and the next header read meets `(0, Closed)` in the same pass, exactly as on `main`. #1606 moves nothing here.
- What remains is a FIN without GOAWAY landing between the `epoll_wait` and the `recv`: at most one `epoll_wait` per backend H2 connection, never per request, and not measurable with an H1 backend.

## Tests (seen red first)

`the_final_goaway_and_close_notify_leave_in_one_tls_write` (`h2.rs`): over a real `FrontRustls` on a loopback socket, drives `goaway(NoError)`, the `writable` pass (which must answer `CloseSession`) and `close`, and counts every `write_tls` holding a record (`crate::socket::tls_writes`, a `#[cfg(test)]` thread-local counter in the new `flush_tls` helper every `FrontRustls` write goes through). Then it reads the wire raw and checks the records in order (39 bytes, then 24), and decrypts them: the 17-byte GOAWAY with `NO_ERROR`, then a clean end of stream, which rustls reports only after `close_notify`.

- Red with the `zero_flush_closes_connection` branch dropped: `left: 2, right: 1` on the write count.
- Red with `send_close_notify` queued before `writer().write`: records `[24, 39]`.

## Checks

`cargo build --locked --no-default-features --features crypto-ring,opentelemetry,splice,simd`, `cargo +nightly fmt --all -- --check`, clippy with the same features `--all-targets -- -D warnings`, tests for `sozu-lib` (1217 passed), `sozu`, `sozu-command-lib`, `sozu-e2e -- --skip tests::fuzz_tests::` (449 passed), `sozu-sim` test and clippy under `--cfg tokio_unstable`, `RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --locked`, and `check_doc_citations.py` (`--self-test`, `--root .`, `--base b19d94f…`, `--audit --root .`): all exit 0. 14 line citations in `doc/` and `LIFECYCLE.md` re-anchored to the same text in the same function.

Rebase note for #1606: this branch touches `socket.rs` on the write side only (`flush_tls` at the five `write_tls` sites, the trait method, the `FrontRustls` override); its hunks start at old lines 65, 582, 931, 972, 1124, 1157, 1192 and 1249, none overlapping #1606's (192, 608–733 on the read path, 1263). `mux/mod.rs` is untouched.

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.

perf(mux): close path spends an epoll_wait on a known EOF and a shutdown on a closed peer

1 participant