@Override
    public void exceptionCaught(final NioChannel channel, Exception cause) {
        LOGGER.error("exceptionCaught - " + channel.remoteAddress(), cause);
        channel.close().addListener(new IoFutureListener() {
            @Override
            public void operationComplete(Future future) throws Exception {
                LOGGER.info("closeChannel: close the connection to remote address[{}] result: {}", channel.remoteAddress(),
                        future.isSuccess());
            }
        });
    }
@author Robert HG (254963746@qq.com) on 2/3/16.
lts-core/src/test/java/com/github/ltsopensource/nio/EventHandler.java