diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-07-25 23:24:30 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-07-25 23:25:07 +0200 |
commit | 847fd2404e4cc8ec009d6b289287d8563b722e97 (patch) | |
tree | f5e6c3278c1cf918a741b65660f56a3ea549aa52 /vespa-http-client | |
parent | 5251972c2021d7a3915418b9be63fdac31069552 (diff) |
Adjust connection time to live to be more TLS friendly
Diffstat (limited to 'vespa-http-client')
-rw-r--r-- | vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java index 0b92427bcbe..1e692547de8 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java @@ -406,7 +406,7 @@ class ApacheGatewayConnection implements GatewayConnection { } clientBuilder.setMaxConnPerRoute(1); clientBuilder.setMaxConnTotal(1); - clientBuilder.setConnectionTimeToLive(15, TimeUnit.SECONDS); + clientBuilder.setConnectionTimeToLive(10, TimeUnit.MINUTES); clientBuilder.setUserAgent(String.format("vespa-http-client (%s)", Vtag.currentVersion)); clientBuilder.setDefaultHeaders(Collections.singletonList(new BasicHeader(Headers.CLIENT_VERSION, Vtag.currentVersion))); clientBuilder.disableContentCompression(); |