code: @Override
      public void sessionIdle(IoSession session, IdleStatus status) {
          if (status == IdleStatus.READER_IDLE) {
              throw new StreamIoException(new SocketTimeoutException(
                      "Read timeout"));
          }
      }
docs: Handles read timeout.