HTTP/2: tighten SETTINGS validation#632
Merged
arturobernalg merged 1 commit intoapache:masterfrom Feb 22, 2026
Merged
Conversation
Enforce RFC 9113 constraints for SETTINGS_ENABLE_PUSH and reject invalid values. Accept zero values for peer settings that may legitimately be 0. Add unit tests for client and server multiplexers.
ok2c
approved these changes
Feb 22, 2026
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.
This change tightens HTTP/2 SETTINGS processing and aligns config handling with RFC 9113.
RFC 9113 6.5.2 (SETTINGS_ENABLE_PUSH):
"Any value other than 0 or 1 MUST be treated as a connection error (Section 5.4.1) of type PROTOCOL_ERROR."
"A client MUST treat receipt of a SETTINGS frame with SETTINGS_ENABLE_PUSH set to 1 as a connection error (Section 5.4.1) of type PROTOCOL_ERROR."
RFC 9113 6.5.2 (SETTINGS_MAX_CONCURRENT_STREAMS):
"A value of 0 for SETTINGS_MAX_CONCURRENT_STREAMS SHOULD NOT be treated as special by endpoints."
RFC 9113 6.5.2 (SETTINGS_INITIAL_WINDOW_SIZE):
"Values above the maximum flow-control window size of 2^{31}-1 MUST be treated as a connection error (Section 5.4.1) of type FLOW_CONTROL_ERROR."
RFC 9113 6.5.2 (SETTINGS_MAX_HEADER_LIST_SIZE):
"The initial value of this setting is unlimited."