I have a netty channel and I would like to set a timeout on the underlying socket ( it is set by default to 0 ).
The purpose of the timeout is that the not used channel will be closed if nothing is happening for 15 minutes for instance.
Although I dont see any configuration to do so , and the socket itself is also hidden from me.
Thanks
If ReadTimeoutHandler class is used, the time-out can be controlled.
Following is a quotation from Javadoc.
When it will cause a time-out, MyHandler.exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) is called with ReadTimeoutException.