.connect(new InetSocketAddress(host, port));
connectFuture.addListener(listener);
if (!latch.await(2, TimeUnit.SECONDS)) {
connectFuture.removeListener(listener);
connectFuture.cancel();
throw new ExecutionException(new TimeoutException("创建链接2秒超时"));
}
if (!connectFuture.isSuccess()) {
throw new RuntimeException("connect server fail " + host,
connectFuture.getCause());