Skip to content

Commit

Permalink
[ISSUE #3271]Fix handle http message throw IllegalReferenceCountExcep…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
mxsm committed Feb 26, 2023
1 parent 987378d commit 3a36275
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
import io.netty.handler.ssl.SslHandler;
import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStateEvent;
import io.netty.util.ReferenceCountUtil;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.semconv.trace.attributes.SemanticAttributes;

Expand Down Expand Up @@ -444,9 +443,7 @@ protected void channelRead0(ChannelHandlerContext ctx, HttpRequest httpRequest)
}

} catch (Exception ex) {
log.error("AbrstractHTTPServer.HTTPHandler.channelRead error", ex);
} finally {
ReferenceCountUtil.release(httpRequest);
log.error("execute AbstractHTTPServer.HTTPHandler.channelRead0 error", ex);
}
}

Expand Down

0 comments on commit 3a36275

Please sign in to comment.