summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-10-02 10:53:38 +0200
committerSimon Rettberg2024-10-02 10:53:38 +0200
commit8ebc647eb2e5831c49accc84e3b57b498a4a7e22 (patch)
tree10dceb1e1e25ad94a03d309eec6d85d183d37ce7
parent[*] Remove log4j2 dependencies, already included through master-sync-shared (diff)
downloadtutor-module-8ebc647eb2e5831c49accc84e3b57b498a4a7e22.tar.gz
tutor-module-8ebc647eb2e5831c49accc84e3b57b498a4a7e22.tar.xz
tutor-module-8ebc647eb2e5831c49accc84e3b57b498a4a7e22.zip
[client] Tweak connection timeouts
-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);