mirror of https://github.com/grpc/grpc-java.git
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. https://github.com/grpc/grpc-java/issues/11115
This commit is contained in:
parent
77e59b29dd
commit
fb9a10809f
|
|
@ -748,6 +748,7 @@ class NettyServerHandler extends AbstractNettyHandler {
|
||||||
int streamId = cmd.stream().id();
|
int streamId = cmd.stream().id();
|
||||||
Http2Stream stream = connection().stream(streamId);
|
Http2Stream stream = connection().stream(streamId);
|
||||||
if (stream == null) {
|
if (stream == null) {
|
||||||
|
cmd.release();
|
||||||
streamGone(streamId, promise);
|
streamGone(streamId, promise);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue