Repository navigation
Conversation
The docs said a header block larger than :max_header_list_size closes
the connection. A decoded response header list over the limit resets the
request with a PROTOCOL_ERROR stream error and returns a
{:max_header_list_size_exceeded, size, max_size} error, and promised
request headers over the limit reset the promised stream with
REFUSED_STREAM. The connection stays open in both cases.
Only the header block fragments buffered while waiting for END_HEADERS
are a connection error, when they're over an upper bound on the encoded
size of a header list within the limit. The fragment that carries
END_HEADERS isn't counted, and the complete block is then judged by its
decoded size.
The docs also say that the server setting is :infinity until the server
sends it, and that the client setting must be an integer, since
put_settings/2 and the :client_settings option raise on :infinity.
ericmj
added this pull request to stack #537
October 16, 2026 13:04
Coverage Report for CI Build 338Coverage decreased (-0.1%) to 90.426%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions3 previously-covered lines in 2 files lost coverage.
Coverage Stats
馃挍 - Coveralls |
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.
The docs said a header block larger than
:max_header_list_sizecloses the connection. A decoded response header list over the limit resets the request with a PROTOCOL_ERROR stream error and returns a{:max_header_list_size_exceeded, size, max_size}error, and promised request headers over the limit reset the promised stream with REFUSED_STREAM. The connection stays open in both cases.Only the header block fragments buffered while waiting for END_HEADERS are a connection error, when they're over an upper bound on the encoded size of a header list within the limit. The fragment that carries END_HEADERS isn't counted, and the complete block is then judged by its decoded size.
The docs also say that the server setting is
:infinityuntil the server sends it, and that the client setting must be an integer, sinceput_settings/2and the:client_settingsoption raise on:infinity.