From 076627d2bb42b1a7fd5d2a074bb4c762a6915461 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 5 Mar 2012 14:48:52 -0800 Subject: [PATCH] setting of zero isn't possible to pass --- .../http/internal/JavaUrlHttpCommandExecutorService.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/org/jclouds/http/internal/JavaUrlHttpCommandExecutorService.java b/core/src/main/java/org/jclouds/http/internal/JavaUrlHttpCommandExecutorService.java index 50ef222bad..1fec2a79c8 100644 --- a/core/src/main/java/org/jclouds/http/internal/JavaUrlHttpCommandExecutorService.java +++ b/core/src/main/java/org/jclouds/http/internal/JavaUrlHttpCommandExecutorService.java @@ -185,12 +185,8 @@ public class JavaUrlHttpCommandExecutorService extends BaseHttpCommandExecutorSe if (utils.trustAllCerts()) sslCon.setSSLSocketFactory(untrustedSSLContextProvider.get().getSocketFactory()); } - if (utils.getConnectionTimeout() > 0) { - connection.setConnectTimeout(utils.getConnectionTimeout()); - } - if (utils.getSocketOpenTimeout() > 0) { - connection.setReadTimeout(utils.getSocketOpenTimeout()); - } + connection.setConnectTimeout(utils.getConnectionTimeout()); + connection.setReadTimeout(utils.getSocketOpenTimeout()); connection.setDoOutput(true); connection.setAllowUserInteraction(false); // do not follow redirects since https redirects don't work properly