summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/util/ProxyConfigurator.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/util/ProxyConfigurator.java b/dozentenmodul/src/main/java/org/openslx/dozmod/util/ProxyConfigurator.java
index 724a25d6..9a38852b 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/util/ProxyConfigurator.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/util/ProxyConfigurator.java
@@ -53,9 +53,9 @@ public class ProxyConfigurator {
private static final List<TLS[]> TLS_CHECKLIST;
- private static final Timeout TIMEOUT_CONNECT = Timeout.ofSeconds(8);
- private static final Timeout TIMEOUT_SOCKET = Timeout.ofSeconds(8);
- private static final Timeout TIMEOUT_REQUEST = Timeout.ofSeconds(3);
+ private static final Timeout TIMEOUT_CONNECT = Timeout.ofSeconds(4);
+ private static final Timeout TIMEOUT_SOCKET = Timeout.ofSeconds(10);
+ private static final Timeout TIMEOUT_TEST_REQUEST = Timeout.ofSeconds(5);
private static SSLContext thriftCtx;
@@ -248,7 +248,8 @@ public class ProxyConfigurator {
private static boolean testHttpsMaster(CloseableHttpClient client) {
final RequestConfig requestConfig = RequestConfig.custom()
- .setConnectionRequestTimeout(ProxyConfigurator.TIMEOUT_REQUEST)
+ .setConnectTimeout(ProxyConfigurator.TIMEOUT_CONNECT)
+ .setConnectionRequestTimeout(ProxyConfigurator.TIMEOUT_TEST_REQUEST)
.build();
HttpGet httpGet = new HttpGet(ShibbolethEcp.BWLP_SP.toString());
httpGet.setConfig(requestConfig);