What ensure Netty handlers will get GCed

22 views Asked by At

I have written http server and have couple of custom handlers too. Sometimes I want to explicitly close the client connection if some error occurs etc. So in that case what I do is channelHandlerContext.close(). Will this enough to let this handler object GCed. Do I have to do override channelInactive() and do something more ?

1

There are 1 answers

0
Norman Maurer On

This will be enough as the pipeline will be cleared on close