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

Add configurable capping for values of H2 MAX_HEADER_LIST_SIZE settings frames #12690

Open
lorban opened this issue Jan 9, 2025 · 2 comments
Assignees
Labels
Enhancement Sponsored This issue affects a user with a commercial support agreement

Comments

@lorban
Copy link
Contributor

lorban commented Jan 9, 2025

Jetty version(s)
12.0.x

Enhancement Description
Currently, HTTP2Session.configure() does not cap the values of the MAX_HEADER_LIST_SIZE settings frames.

We should add new config settings to control this capping.

@lorban lorban added Enhancement Sponsored This issue affects a user with a commercial support agreement labels Jan 9, 2025
@lorban lorban self-assigned this Jan 9, 2025
@lorban lorban changed the title Add configurable capping for values of H2 MAX_FRAME_SIZE and MAX_HEADER_LIST_SIZE settings frames Add configurable capping for values of H2 MAX_FRAME_SIZE and MAX_HEADER_LIST_SIZE settings frames Jan 9, 2025
@lorban lorban moved this to 🏗 In progress in Jetty 12.0.17 Jan 9, 2025
@sbordet
Copy link
Contributor

sbordet commented Jan 9, 2025

MAX_FRAME_SIZE does not need capping, because it is only used for sanity checks.

But MAX_HEADER_LIST_SIZE must be capped because it is used for allocating buffers.

@lorban lorban changed the title Add configurable capping for values of H2 MAX_FRAME_SIZE and MAX_HEADER_LIST_SIZE settings frames Add configurable capping for values of H2 MAX_HEADER_LIST_SIZE settings frames Jan 9, 2025
@lorban
Copy link
Contributor Author

lorban commented Jan 9, 2025

@sbordet thanks, I've updated both the title and the description to reflect this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Sponsored This issue affects a user with a commercial support agreement
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants