Skip to content

Conversation

@sbordet
Copy link
Contributor

@sbordet 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]>
@sbordet sbordet linked an issue Nov 6, 2024 that may be closed by this pull request
Copy link
Contributor

@lorban lorban left a 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.

* Introduced HTTP2Client.maxRequestHeadersSize.
* Initialized HpackEncoder.maxHeaderListSize.

Signed-off-by: Simone Bordet <[email protected]>
@sbordet sbordet requested a review from lorban November 10, 2024 11:20
lorban
lorban previously approved these changes Nov 11, 2024
Copy link
Contributor

@lorban lorban left a 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);
Copy link
Contributor

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]>
@sbordet sbordet merged commit 6aaaa15 into jetty-12.0.x Nov 12, 2024
8 checks passed
@sbordet sbordet deleted the fix/jetty-12.0.x/12488/h2-headers-split branch November 12, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

HTTP/2 headers may not be split in CONTINUATION frames

3 participants