When idle event is fired :
userEventTriggered(ChannelHandlerContext ctx, Object evt)
evt type should be IdleStateEvent ,not IdleState , so the following is correct:
if (evt instanceof IdleStateEvent) {
IdleState e = ((IdleStateEvent) evt).state();
if (e == IdleState.ALL_IDLE) {
ctx.close();
}
}
Original issue reported on code.google.com by shimon.xin@gmail.com on 9 Jan 2014 at 6:49
Original issue reported on code.google.com by
shimon.xin@gmail.com
on 9 Jan 2014 at 6:49