Skip to content

Commit 3a36275

Browse files
committed
[ISSUE #3271]Fix handle http message throw IllegalReferenceCountException
1 parent 987378d commit 3a36275

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/boot/AbstractHTTPServer.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
import io.netty.handler.ssl.SslHandler;
9696
import io.netty.handler.timeout.IdleState;
9797
import io.netty.handler.timeout.IdleStateEvent;
98-
import io.netty.util.ReferenceCountUtil;
9998
import io.opentelemetry.api.trace.Span;
10099
import io.opentelemetry.semconv.trace.attributes.SemanticAttributes;
101100

@@ -444,9 +443,7 @@ protected void channelRead0(ChannelHandlerContext ctx, HttpRequest httpRequest)
444443
}
445444

446445
} catch (Exception ex) {
447-
log.error("AbrstractHTTPServer.HTTPHandler.channelRead error", ex);
448-
} finally {
449-
ReferenceCountUtil.release(httpRequest);
446+
log.error("execute AbstractHTTPServer.HTTPHandler.channelRead0 error", ex);
450447
}
451448
}
452449

0 commit comments

Comments
 (0)