Repository navigation
Conversation
Motivation The decompressed header limit has coverage below the limit but not for where counting a field name twice would reject an ordinary request. Modification Decode a complete HTTP/2 request with two extension fields using the exact local name-plus-value budget, and assert both fields are retained. Result The native suite protects the existing local accounting behavior without changing the advertised HTTP/2 setting or production code. References Netty HpackDecoderTest.testDecodeCountsNamesOnlyOnce; RFC 9113 §6.5.2. Tests RequestParsingSpec on Scala 2.13.18 and 3.3.9; Scala format and header checks.
pjfanning
reviewed
Nov 26, 2026
pjfanning
left a comment
Member
There was a problem hiding this comment.
Nit: it only checks the accepting side at the exact limit, so it would also pass if names weren't counted at all. Adding a rejection case at fieldBytes - 1 would make "counted once" two-sided.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The local decompressed header limit already counts a field's name once, but the existing request test stays comfortably below that limit.
Modification
Add a focused HTTP/2 request-parsing test. Decode a complete GET with two ASCII extension fields at its exact local name-plus-value limit and check that both fields reach the request.
Result
This test protects the existing accounting without changing production code or the advertised HTTP/2 field section size.
References
Tests
RequestParsingSpeccase: 1 passed on each of Scala 2.13.18 and 3.3.9 with JDK 17.