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-h2): DATA on a backend response without a body is forwarded to the client #1772
A response to HEAD, a 204 or a 304 has no content (RFC 9110 §6.4.1); an H2 response of that kind that carries DATA with a payload is malformed (RFC 9113 §8.1.1).
Sōzu forwards such DATA from an H2 backend: an H1 client receives the payload after the response head (with a chunk-size line under chunked framing) and reads it as the start of the next response on a keep-alive connection. The content-length mismatch checks of handle_data_frame are skipped for these responses, so nothing stops it.
Expected: the backend stream is reset with PROTOCOL_ERROR and the payload is never forwarded to the client.
Activity
fix(mux-h2): discard the DATA of a HEAD response, count bodiless resets
fix(mux-h2): reset a backend stream whose bodiless response carries DATA
fix(mux-h2): discard the DATA of a HEAD response, count bodiless resets
fix(mux-h2): reset a backend stream whose bodiless response carries DATA
fix(mux-h2): discard the DATA of a HEAD response, count bodiless resets
fix(mux-h2): add no Transfer-Encoding to a response without a body (#…
fix(mux-h2): reset a backend stream whose bodiless response carries DATA
fix(mux-h2): discard the DATA of a HEAD response, count bodiless resets
test(mux-h2): pin that a trailer after the reset of a 204 carrying DA…
fix(mux-h2): reset a 204/304 backend stream carrying DATA, discard a …