About SimpleChannelHandler.channelDisconnected
Clement Mathieu
clement.mathieu at activeeon.com
Wed Nov 3 14:27:30 EDT 2010
Hi,
How can I distinguish theses two events in a SimpleChannelHandler:
- The remote peer closed the connection (or connection broken or whatever)
- My code invoked Channel.close()
Basically I want to perform an action if and only if the connection is
lost. I don't want to do it if I'm closing the connection from my
side. I thought that channelDisconnected will do the job, but the
method is also called when Channel.close() is invoked.
Best Regards.
Clément MATHIEU
More information about the netty-users
mailing list