Skip to content

Conversation

@lachlan-roberts
Copy link
Contributor

I was getting a failed test from org.eclipse.jetty.test.client.transport.HttpClientTest#testInvalidFieldValues about a buffer being acquired but never released.

This was because there was an error when encoding the headers, and in HeadersGenerator the buffer was being allocated but not being added to the accumulator and only buffers in the accumulator were being released on failure.

This change fixes the test failure (not sure why the failure is not showing up in CI).

… of failure.

Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
@lachlan-roberts lachlan-roberts self-assigned this Sep 3, 2025
@lachlan-roberts lachlan-roberts moved this to 👀 In review in Jetty 12.0.27 FROZEN Sep 5, 2025
@lachlan-roberts lachlan-roberts moved this to 👀 In review in Jetty 12.1.2 - FROZEN Sep 5, 2025
@lachlan-roberts lachlan-roberts merged commit 38b15a8 into jetty-12.0.x Sep 9, 2025
11 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Jetty 12.0.27 FROZEN Sep 9, 2025
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Jetty 12.1.2 - FROZEN Sep 9, 2025
@lachlan-roberts lachlan-roberts deleted the jetty-12.0.x-HeadersGeneratorLeak branch September 9, 2025 23:49
@olamy olamy added the Bug For general bugs on Jetty side label Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug For general bugs on Jetty side

Projects

No open projects
Status: ✅ Done
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants