-
Notifications
You must be signed in to change notification settings - Fork 2k
Fixes #12488 - HTTP/2 headers may not be split in CONTINUATION frames. #12489
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 #12488 - HTTP/2 headers may not be split in CONTINUATION frames. #12489
Conversation
sbordet
commented
Nov 6, 2024
- Removed unnecessary and wrong initialization of Parser and Generator properties, as they are initialized by SETTINGS frames (or they have default values already).
- Fixed headers generation, taking into account maxHeaderListSize and maxFrameSize correctly.
* Removed unnecessary and wrong initialization of Parser and Generator properties, as they are initialized by SETTINGS frames (or they have default values already). * Fixed headers generation, taking into account maxHeaderListSize and maxFrameSize correctly. Signed-off-by: Simone Bordet <[email protected]>
lorban
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a broken proxy test that seems directly related to this change.
…split'. Signed-off-by: Simone Bordet <[email protected]>
* Introduced HTTP2Client.maxRequestHeadersSize. * Initialized HpackEncoder.maxHeaderListSize. Signed-off-by: Simone Bordet <[email protected]>
lorban
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit.
| _debug = LOG.isDebugEnabled(); | ||
| setMaxTableCapacity(HpackContext.DEFAULT_MAX_TABLE_CAPACITY); | ||
| setTableCapacity(HpackContext.DEFAULT_MAX_TABLE_CAPACITY); | ||
| setMaxHeaderListSize(4096); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't that be a constant?
Introduced HpackContext.DEFAULT_MAX_HEADER_LIST_SIZE. Signed-off-by: Simone Bordet <[email protected]>