Repository navigation
test: verify HTTP/2 initial stream limits are advertised - #1752
Merged
He-Pin merged 1 commit intoNov 28, 2026
Merged
Conversation
Motivation: The client and server startup tests confirm the initial SETTINGS frame type, but do not check that a non-default concurrent stream limit reaches the peer. Modification: Use different positive limits for the two endpoints in the existing nonempty SETTINGS cases and assert the single advertised value on the decoded first outbound frame. Leave other settings and the remaining scenarios unchanged. Result: The tests catch a missing, duplicated, or defaulted advertisement without opening HTTP/2 request streams or changing production code. Tests: - JDK 17, Scala 2.13.18 and 3.3.9: both exact-name nonempty startup tests passed on each axis using unchanged main production classes. - Scoped scalafmt and git diff --check passed. Full sbt was not run. References: Refs apache#1457; RFC 9113 section 6.5.2.
He-Pin
marked this pull request as ready for review
November 27, 2026 16:37
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
Have the existing ordinary client and server startup tests set distinct non-default concurrent stream values. Independently decode the actual first emitted SETTINGS bytes, and require the configured value for each endpoint. No streams are opened or production code changed.
Tests
JDK 17; both focused startup tests on Scala 2.13.18 and 3.3.9. Scoped formatting passed.
References
https://www.rfc-editor.org/rfc/rfc9113.html#section-6.5.2