in infrastructure/src/main/java/org/apache/geode/infrastructure/aws/MetadataInstaller.java [73:90]
private void connect(String host, SSHClient client) throws IOException, InterruptedException {
int i = 0;
while (true) {
try {
i++;
client.connect(host);
return;
} catch (ConnectException e) {
if (i >= RETRIES) {
throw e;
}
System.out.println("Failed to connect, retrying...");
Thread.sleep(AwsBenchmarkMetadata.POLL_INTERVAL);
}
}
}