I hava a question about Netty channel.
I inserted a channel handler into a channel pipeline. When connection is down (for example, the peer socket closed), channelInactive method is called:
@Override
public void channelInactive(ChannelHandlerContext ctx) {
}
Do I need to explicitly close the channel in channelInactive method? like:
@Override
public void channelInactive(ChannelHandlerContext ctx) {
ctx.channel().close();
}
Does Netty do some cleanup for me? Or I have to do some cleanup myself?