Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fixes #12436 - Allow headers size extend to maxRequestHeadersSize in http client. #12544

Merged

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Nov 15, 2024

Initially contributed by @shaoxt, but reworked in light of #12351.

For HTTP/1, headers are initially generated using HttpClient.getRequestBufferSize().
If that overflows, headers are generated again with HttpClient.getMaxRequestHeadersSize().
This allows most of the requests to use a smaller buffer.

shaoxt and others added 2 commits November 15, 2024 23:31
…http client.

Reworked contribution by @shaoxt in light of the work done in #12351.

Signed-off-by: Simone Bordet <[email protected]>
@shaoxt
Copy link
Contributor

shaoxt commented Nov 15, 2024

Thanks a lot to make this PR green.

@sbordet sbordet merged commit 72e9933 into jetty-12.1.x Nov 17, 2024
10 checks passed
@sbordet sbordet deleted the fix/jetty-12.1.x/shaoxt-max-request-headers-size branch November 17, 2024 23:42
@shaoxt
Copy link
Contributor

shaoxt commented Nov 18, 2024

Thanks a lot to modify and merge this PR.
Will the changes be carry over to Jetty 11 ?

@sbordet
Copy link
Contributor Author

sbordet commented Nov 18, 2024

@shaoxt no, they will not be backported to Jetty 11, as Jetty 11 is at end of community support:

If you need this feature backported to Jetty 11, you can contact Webtide for commercial support.

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.

Allow headers size extend to maxRequestHeadersSize in http client
3 participants