@Override public void sessionIdle(IoSession session, IdleStatus status) throws Exception { Object userSid = session.getAttribute(BaseHandler.ATTR_USER_SID); if (userSid != null) { logger.debug("===> sessionIdle:" + userSid.toString()); } session.closeOnFlush(); }
@Override public void inputClosed(IoSession session) throws Exception { session.closeOnFlush(); }
@Override public void exceptionCaught(IoSession session, Throwable cause) throws Exception { logger.error(cause.getMessage()); session.closeOnFlush(); }