Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(client): Expose http2::builder::max_header_list_size in the client builder #154

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.

Co-authored-by: Sean McArthur <sean@seanmonstar.com>
@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.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants