Skip to content

Conversation

DSharifi
Copy link
Contributor

Currently the max size of received header frames for HTTP2 responses defaults to the 16KB when creating a hyper client. The 16KB default is defined in hyper::proto::h2::DEFAULT_MAX_HEADER_LIST_SIZE.

This PR adds support to override this default value, to allow for custom limits of the maximum header sizes being received in HTTP/2 responses.

Adjusting the limit is already supported for incoming requests with hyper_util::server::conn::auto::Http2Builder::max_header_list_size.

@DSharifi DSharifi marked this pull request as ready for review October 25, 2024 15:44
@seanmonstar seanmonstar merged commit 30f38c8 into hyperium:master Oct 25, 2024
16 checks passed
github-merge-queue bot pushed a commit to dfinity/ic that referenced this pull request Oct 28, 2024
…quests (#2292)

After enabling h/2 with outcalls we had a regression where responses to
https outcalls with headers greated than 16KB would fail. In
hyperium/hyper-util#154 (comment)
hyper-util exposes a method to increase the header response limit.

This PR increases the limit to 52KiB, above 48KiB in the spec, to not
block this weeks release in case the spec-compliance tests have any
headers hardcoded that can break the test. We can reduce this limit
closer to 48KiB in the future.
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.

2 participants