@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { // Make sure to release SSLEngine, // and notify the handshake future if the connection has been closed during handshake. setHandshakeFailure(ctx, CHANNEL_CLOSED); super.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (byteDecoder != null) { byteDecoder.channelInactive(ctx); super.channelInactive(ctx); byteDecoder = null; } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (byteDecoder != null) { encoder.flowController().channelHandlerContext(null); decoder.flowController().channelHandlerContext(null); byteDecoder.channelInactive(ctx); super.channelInactive(ctx); byteDecoder = null; } }