BROOKLYN-113: curl retries and times out sooner

Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/6fe7994e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/6fe7994e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/6fe7994e

Branch: refs/heads/master
Commit: 6fe7994ef585f04fa8bcdf143cfb2f174e84cb9b
Parents: c61a309
Author: Aled Sage <[email protected]>
Authored: Tue Jan 13 13:54:00 2015 +0000
Committer: Aled Sage <[email protected]>
Committed: Thu Jan 15 10:10:09 2015 +0000

----------------------------------------------------------------------
 utils/common/src/main/java/brooklyn/util/ssh/BashCommands.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/6fe7994e/utils/common/src/main/java/brooklyn/util/ssh/BashCommands.java
----------------------------------------------------------------------
diff --git a/utils/common/src/main/java/brooklyn/util/ssh/BashCommands.java 
b/utils/common/src/main/java/brooklyn/util/ssh/BashCommands.java
index 457a60a..e60b332 100644
--- a/utils/common/src/main/java/brooklyn/util/ssh/BashCommands.java
+++ b/utils/common/src/main/java/brooklyn/util/ssh/BashCommands.java
@@ -505,7 +505,7 @@ public class BashCommands {
         
         List<String> commands = new ArrayList<String>();
         for (String url : urls) {
-            String command = "curl -f -L -k ";
+            String command = "curl -f -L -k --retry 10 --keepalive-time 30 
--speed-time 30 ";
             if (user!=null && password!=null) {
                command = command + format("-u %s:%s ", user, password);
             }

Reply via email to