You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mux): a half-closed TLS H1 client loses the end of a large response #1779
A TLS HTTP/1.1 client that sends its request and then half-closes its connection (shutdown(SHUT_WR)) can lose the end of a large response: responses of 3 MiB and more are observed truncated (around 2.75 MB or 4.3 MB), sometimes ending in a reset.
Mux::delay_close_for_frontend_flush (lib/src/protocol/mux/mod.rs) queues the TLS close_notify as soon as the frontend HUP is seen, and a HUP with nothing pending closes the session on entry to Mux::ready_inner, while the response is still being produced. A half-close only ends the client's sending side (RFC 9293 §3.6); the response must still be delivered whole.
The H2 test e2e_session_tls_client_fin_not_truncated passes only because it sleeps 200 ms before half-closing.
Activity
fix(mux): close on a reset, an incomplete half-closed request or hand…
fix(mux): close on a full hang-up whose reset a read or write consumed
fix(mux): carry WRITE_CLOSED through the TLS upgrade and into traces
docs(mux): reflow the hang-up notes joined onto the next line
test(e2e): reset the connections test_max_connections abandons
fix(mux): close an HTTP/2 session whose client write failed
Merge origin/main into fix/mux-h2-reset-mid-download
fix(mux): deliver the whole response to a half-closed client (sozu-pr…
fix(proxy-protocol): drain a PROXY-v2 header coalesced with the clien…