diff --git a/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/internal/HttpConnection.java b/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/internal/HttpConnection.java index bda157c4030e..0e585316b523 100644 --- a/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/internal/HttpConnection.java +++ b/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/internal/HttpConnection.java @@ -1146,6 +1146,7 @@ public Throwable consumeAvailable() Throwable result = HttpStream.consumeAvailable(this, getHttpConfiguration()); if (result != null) _generator.setPersistent(false); + releaseRequestBuffer(); return result; } diff --git a/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/ServerTimeoutsTest.java b/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/ServerTimeoutsTest.java index b80165c8b50b..b6add791b314 100644 --- a/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/ServerTimeoutsTest.java +++ b/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/ServerTimeoutsTest.java @@ -32,7 +32,6 @@ import org.eclipse.jetty.server.Request; import org.eclipse.jetty.server.Response; import org.eclipse.jetty.util.Callback; -import org.junit.jupiter.api.Tag; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; @@ -95,9 +94,6 @@ public boolean handle(Request request, Response response, Callback callback) @ParameterizedTest @MethodSource("transportsAndTrueIdleTimeoutListeners") - @Tag("DisableLeakTracking:server:HTTP") - @Tag("DisableLeakTracking:server:HTTPS") - @Tag("DisableLeakTracking:server:UNIX_DOMAIN") public void testIdleTimeoutWithDemand(Transport transport, boolean listener) throws Exception { AtomicBoolean listenerCalled = new AtomicBoolean();