Skip to content

quiche: set the max field section size - #22331

Closed
GrahamCampbell wants to merge 1 commit into
curl:masterfrom
GrahamCampbell:quiche-max-field-section
Closed

quiche: set the max field section size#22331
GrahamCampbell wants to merge 1 commit into
curl:masterfrom
GrahamCampbell:quiche-max-field-section

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Contributor

quiche 0.29.3 started enforcing a default SETTINGS_MAX_FIELD_SECTION_SIZE of 32KB, so larger response headers now shut down the whole connection with CURLE_HTTP3. curl accepts up to 300KB of response headers with every other backend and HTTP version. Tell quiche to allow what curl itself allows. This keeps test_01_11 passing with quiche 0.29.3 and it also advertises our real limit to servers, which the RFC encourages.

@github-actions github-actions Bot added the HTTP/3 h3 or quic related label Jul 15, 2026

@icing icing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find.

@bagder

bagder commented Jul 15, 2026

Copy link
Copy Markdown
Member

I believe this function was introduced in quiche 0.20.0 so maybe, with this change, we should document that as the earliest supported quiche version? I just noticed that we don't yet list a version in docs/INTERNALS.md.

@vszakats

Copy link
Copy Markdown
Member

PR #22333 to document the requirement.

vszakats added a commit that referenced this pull request Jul 15, 2026
For function `quiche_h3_config_set_max_field_section_size()`.

Ref: #22331
Ref: #22331 (comment)
Ref: https://github.com/cloudflare/quiche/releases/tag/0.20.0

Closes #22333
@GrahamCampbell

Copy link
Copy Markdown
Contributor Author

Sounds good. The max 2 PR rule limits me from marking this as ready for review, so we'll need to wait until some of my other PRs ahead of this one are merged/closed first. :)

@vszakats vszakats closed this in f369c7b Jul 15, 2026
@vszakats

Copy link
Copy Markdown
Member

Ah ok, I merged it now, thanks for the PR!

vszakats pushed a commit that referenced this pull request Jul 15, 2026
@bagder

bagder commented Jul 15, 2026

Copy link
Copy Markdown
Member

The max 2 PR rule limits me from marking this as ready for review

Let me bump the limit, it was arbitrarily set anyway!

@GrahamCampbell
GrahamCampbell deleted the quiche-max-field-section branch July 15, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HTTP/3 h3 or quic related

Development

Successfully merging this pull request may close these issues.

4 participants