The HTTP2 protocol has its own way of managing connections, with certain frames being used for performing a handshake, a ping, etc. See the [RFC](https://www.rfc-editor.org/rfc/rfc9113). Sōzu needs to handle such incoming frames. --- ## Update — 2026-04-24 Implemented on `feat/h2-mux` (PR #1209) in `lib/src/protocol/mux/h2.rs` (~7190 LOC). Handled frames and mechanisms: - Connection preface + SETTINGS handshake with ACK, timeout enforcement, and 64-entry cap (RFC 9113 §6.5). - HEADERS / CONTINUATION with standalone-CONTINUATION guard (GOAWAY `PROTOCOL_ERROR`). - DATA with Content-Length reconciliation. - WINDOW_UPDATE at connection and stream level with 50%-threshold coalescing (RFC 9113 §6.9). - GOAWAY graceful drain (`peer_last_stream_id` replay above cut-off) (§6.8). - RST_STREAM (received + emitted lifetime caps). - PING with flood threshold. - PRIORITY (legacy) and PRIORITY_UPDATE (RFC 9218 §7.1). Conformance: passes **145/145** h2spec cases. Security: dedicated `H2FloodDetector` covers Rapid Reset (CVE-2023-44487), CONTINUATION flood (CVE-2024-27316), and MadeYouReset (CVE-2025-8671), plus per-window caps on PING, SETTINGS, empty DATA, and cumulative protocol abuse. Suggest closing on merge of #1209.
Activity
FlorentinDUBOIS commentedon Apr 27, 2026
Closed by #1209 — feat(h2): HTTP/2 support via unified Mux session layer.
H2 connection-level handling is now implemented:
drainingflag +peer_last_stream_id: streams above the last-stream-id are retried on a new connection.