if ( !future.isSuccess() ) {
log.warn( "Failed to connect to [{}:{}]", host, port );
log.warn( " * reason: {}", future.getCause() );
channel = null;
bootstrap.releaseExternalResources();
throw new InboundConnectionFailure( "Could not connect to " + host + ":" + port, future.getCause() );
}
// Wait for the authentication handshake to call back