Skip to content

Remove unreachable :infinity client max_header_list_size branches - #534

Open
ericmj wants to merge 1 commit into
http2-push-target-validationfrom
http2-remove-infinity-branches
Open

ericmj wants to merge 1 commit into
http2-push-target-validationfrom
http2-remove-infinity-branches

Conversation

@ericmj

@ericmj ericmj commented Oct 16, 2026

Copy link
Copy Markdown
Member

The client :max_header_list_size setting is always an integer: it defaults to 256 KB, and the validation in connect/4 and put_settings/2 raises an ArgumentError for any other value, including :infinity. The branches that handled an :infinity client value when measuring decoded header lists and buffered header blocks could never run, so they're removed. The server's SETTINGS_MAX_HEADER_LIST_SIZE is still :infinity until the server sends it, and its handling is unchanged.

Tests pin the validation that rejects :infinity for the client setting in connect/4 and put_settings/2.

The client :max_header_list_size setting is always an integer: it
defaults to 256 KB, and the validation in connect/4 and put_settings/2
raises an ArgumentError for any other value, including :infinity. The
branches that handled an :infinity client value when measuring decoded
header lists and buffered header blocks could never run, so they're
removed. The server's SETTINGS_MAX_HEADER_LIST_SIZE is still :infinity
until the server sends it, and its handling is unchanged.

Tests pin the validation that rejects :infinity for the client setting
in connect/4 and put_settings/2.
@github-actions

Copy link
Copy Markdown

Coverage Report for CI Build 0

Coverage increased (+0.2%) to 90.805%

Details

  • Coverage increased (+0.2%) from the base build.
  • Patch coverage: 12 of 12 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 2012
Covered Lines: 1827
Line Coverage: 90.81%
Coverage Strength: 723.0 hits per line

馃挍 - Coveralls

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.

1 participant