From df5add259e2f510dfdfe83aeadbb906e0e9b70ab Mon Sep 17 00:00:00 2001 From: Maxim Nesen Date: Tue, 18 Feb 2020 11:40:40 +0100 Subject: [PATCH] synchronized releaseByteBuf Signed-off-by: Maxim Nesen --- .../jersey/netty/connector/internal/NettyInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/internal/NettyInputStream.java b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/internal/NettyInputStream.java index 2dbb6d6130..52f795ab3a 100644 --- a/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/internal/NettyInputStream.java +++ b/connectors/netty-connector/src/main/java/org/glassfish/jersey/netty/connector/internal/NettyInputStream.java @@ -94,7 +94,7 @@ public synchronized void close() { cleanup(true); } - private void releaseByteBuf() { + private synchronized void releaseByteBuf() { if (current != null) { current.release(); }