Skip to content

HPACK decode failures must be treated as connection errors (COMPRESSION_ERROR)#625

Merged
arturobernalg merged 1 commit intoapache:masterfrom
arturobernalg:HPACKDecodingFailures
Feb 18, 2026
Merged

HPACK decode failures must be treated as connection errors (COMPRESSION_ERROR)#625
arturobernalg merged 1 commit intoapache:masterfrom
arturobernalg:HPACKDecodingFailures

Conversation

@arturobernalg
Copy link
Member

RFC 9113 4.3: “A decoding error in a field block MUST be treated as a connection error … of type COMPRESSION_ERROR.”
RFC 7540 4.3: “A decoding error in a header block MUST be treated as a connection error … of type COMPRESSION_ERROR.”

…ON_ERROR)

RFC 7540 / RFC 9113 require any HPACK decoding error to be handled as a
connection error of type COMPRESSION_ERROR. Map HPACK decode failures
(including decoder runtime failures) to H2ConnectionException and avoid
stream-local handling. Add regression tests for HEADERS / PUSH_PROMISE.
@arturobernalg arturobernalg requested a review from ok2c February 18, 2026 15:33
@arturobernalg arturobernalg merged commit 8181dce into apache:master Feb 18, 2026
10 checks passed
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.

2 participants

Comments