Skip to content

Commit fb9a108

Browse files
authored
netty: Release SendGrpcFrameCommand when stream is missing (#11116)
`sendGrpcFrame` owns the buffer in `SendGrpcFrameCommand`. If the frame is not handed off to netty, it needs to be released in the method. #11115
1 parent 77e59b2 commit fb9a108

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

netty/src/main/java/io/grpc/netty/NettyServerHandler.java

+1
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ private void sendGrpcFrame(
748748
int streamId = cmd.stream().id();
749749
Http2Stream stream = connection().stream(streamId);
750750
if (stream == null) {
751+
cmd.release();
751752
streamGone(streamId, promise);
752753
return;
753754
}

0 commit comments

Comments
 (0)