From 42f638353106031e418e63b752d2686c7d860353 Mon Sep 17 00:00:00 2001 From: Bjørn Christian Seime Date: Fri, 26 Jul 2019 10:50:35 +0200 Subject: Revert "Adjust connection time to live to be more TLS friendly" --- .../vespa/http/client/core/communication/ApacheGatewayConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vespa-http-client') 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 aa39f5fa383..0b92427bcbe 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(1, TimeUnit.MINUTES); + clientBuilder.setConnectionTimeToLive(15, TimeUnit.SECONDS); clientBuilder.setUserAgent(String.format("vespa-http-client (%s)", Vtag.currentVersion)); clientBuilder.setDefaultHeaders(Collections.singletonList(new BasicHeader(Headers.CLIENT_VERSION, Vtag.currentVersion))); clientBuilder.disableContentCompression(); -- cgit v1.2.3