Don't set HTTP/2 flow controller ctx to null

Motivation:

We currently set the flow controller ChannelHandlerContexts to null when the channel becomes inactive. This is bad :)

Modifications:

Just remove that code in Http2ConnectionHandler

Result:

Fixes #4240
This commit is contained in:
nmittler 2015-09-21 16:21:23 -07:00
parent a10cd9315a
commit 67c1cb3939

View File

@ -425,8 +425,6 @@ public class Http2ConnectionHandler extends ByteToMessageDecoder implements Http
// Call super class first, as this may result in decode being called.
super.channelInactive(ctx);
if (byteDecoder != null) {
encoder.flowController().channelHandlerContext(null);
decoder.flowController().channelHandlerContext(null);
byteDecoder.channelInactive(ctx);
byteDecoder = null;
}