From 67a13f439c8106a25ef3757c4026f48719088786 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sun, 27 Feb 2011 16:41:57 -0800 Subject: [PATCH] added new retryable ssh exceptions --- .../jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java | 2 +- .../main/java/org/jclouds/aws/ec2/AWSEC2PropertiesBuilder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java b/drivers/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java index 524d3e94d8..adb25d5cc7 100644 --- a/drivers/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java +++ b/drivers/jsch/src/main/java/org/jclouds/ssh/jsch/JschSshClient.java @@ -100,7 +100,7 @@ public class JschSshClient implements SshClient { @Inject(optional = true) @Named("jclouds.ssh.retryable_messages") @VisibleForTesting - String retryableMessages = "invalid data,End of IO Stream Read,Connection reset"; + String retryableMessages = "invalid data,End of IO Stream Read,Connection reset,connection is closed by foreign host,socket is not established"; @Inject(optional = true) @Named("jclouds.ssh.retry_predicate") diff --git a/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2PropertiesBuilder.java b/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2PropertiesBuilder.java index 2159011596..720f854437 100644 --- a/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2PropertiesBuilder.java +++ b/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2PropertiesBuilder.java @@ -63,7 +63,7 @@ public class AWSEC2PropertiesBuilder extends org.jclouds.ec2.EC2PropertiesBuilde // authorized key executes after ssh has started properties.setProperty("jclouds.ssh.max_retries", "7"); properties.setProperty("jclouds.ssh.retryable_messages", - "Auth fail,invalid data,End of IO Stream Read,Connection reset,socket is not established"); + "Auth fail,invalid data,End of IO Stream Read,Connection reset,socket is not established,connection is closed by foreign host,socket is not established"); properties.setProperty(PROPERTY_ENDPOINT, "https://ec2.us-east-1.amazonaws.com"); properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_REGIONS)); // amazon, alestic, canonical, and rightscale