Skip to content

Fix HTTP/2 stream priority memory leak by dropping unused PriorityValue cache from AbstractH2StreamMultiplexer.#617

Open
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:leak_priority
Open

Fix HTTP/2 stream priority memory leak by dropping unused PriorityValue cache from AbstractH2StreamMultiplexer.#617
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:leak_priority

Conversation

@arturobernalg
Copy link
Member

No description provided.

@arturobernalg arturobernalg requested a review from ok2c February 14, 2026 17:00
requestSessionOutput();
final PriorityValue pv = parsePriorityValue(field);
if (pv != null) {
final H2Stream prioritizedStream = streams.lookup(prioritizedId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arturobernalg Why are we ignoring prioritizedId that produce no match? Should we at least reject ids that have never been seen?

}
try {
return PriorityParamsParser.parse(header).toValueWithDefaults();
} catch (final IllegalArgumentException ignore) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arturobernalg Does the parser throw IllegalArgumentException, like, ever?

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.

2 participants