continue;
}
LOGGER.debug("Connected to address {}.", socketChannel.socket().getRemoteSocketAddress());
return new SocketConnectCompletion(socketChannel);
}
throw new ConnectException(String.format("Could not connect to server %s. Tried addresses: %s.",
destinationAddress, candidateAddresses), lastFailure);
} catch (ConnectException e) {
throw e;
} catch (Exception e) {
throw new RuntimeException(String.format("Could not connect to server %s. Tried addresses: %s.",