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

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 <simone.bordet@gmail.com>
@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.

sbordet added a commit that referenced this pull request Feb 6, 2025
* Backported #12544 (client-side handling of request header overflow).
* Introduced HttpConfiguration.maxResponseHeaderSize
* Implemented server-side handling of response header overflow, similar to the client.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
sbordet added a commit that referenced this pull request Feb 7, 2025
…12777)

* Backported #12544 (client-side handling of request header overflow).
* Introduced HttpConfiguration.maxResponseHeaderSize
* Implemented server-side handling of response header overflow, similar to the client.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
# 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.

Allow headers size extend to maxRequestHeadersSize in http client
3 participants