From 9f57f42441d23479ab04eca24c96e300a7b1cd65 Mon Sep 17 00:00:00 2001 From: Bjørn Christian Seime Date: Mon, 11 Sep 2023 10:56:04 +0200 Subject: Increase connect timeout --- .../src/main/java/ai/vespa/feed/client/impl/JettyCluster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/JettyCluster.java b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/JettyCluster.java index 819115fd867..48c4e9ca9bb 100644 --- a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/JettyCluster.java +++ b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/JettyCluster.java @@ -139,7 +139,7 @@ class JettyCluster implements Cluster { connector.setExecutor(new QueuedThreadPool(threads)); connector.setSslContextFactory(clientSslCtxFactory); connector.setIdleTimeout(IDLE_TIMEOUT); - connector.setConnectTimeout(Duration.ofSeconds(10)); + connector.setConnectTimeout(Duration.ofSeconds(30)); HTTP2Client h2Client = new HTTP2Client(connector); h2Client.setMaxConcurrentPushedStreams(b.maxStreamsPerConnection); // Set the HTTP/2 flow control windows very large to cause TCP congestion instead of HTTP/2 flow control congestion. -- cgit v1.2.3