summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@yahooinc.com>2022-04-21 16:24:54 +0200
committerValerij Fredriksen <valerijf@yahooinc.com>2022-04-21 16:24:54 +0200
commit9421854a351bbcd9fe40b8263beffa530a0b828a (patch)
tree8c81e2cec2b1be7a7000abe86c5b17ff6fe74cc3 /configserver
parent6dca3a1c19e44a5b3e396f02d625e6c067d8f4d8 (diff)
Increase configserver proxy timeout
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java b/configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java
index 5f7ace38a2c..66fd84e11d3 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/application/HttpProxy.java
@@ -17,14 +17,11 @@ import com.yahoo.vespa.config.server.http.NotFoundException;
import com.yahoo.vespa.config.server.http.SimpleHttpFetcher;
import java.io.ByteArrayOutputStream;
-import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
-import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.logging.Logger;
-import java.util.regex.Pattern;
import static java.nio.charset.StandardCharsets.UTF_8;
@@ -63,7 +60,7 @@ public class HttpProxy {
.orElseThrow(() -> new NotFoundException("Failed to find HTTP state port"));
HttpURL url = HttpURL.create(Scheme.http, DomainName.of(host.getHostname()), port.getPort(), path, query);
- HttpResponse response = fetcher.get(new Params(2000), // 2_000 ms read timeout
+ HttpResponse response = fetcher.get(new Params(29_000), // 29 sec (30 sec on controller)
url.asURI());
return forwardedUrl == null ? response : new UrlRewritingProxyResponse(response, url, forwardedUrl);
}