aboutsummaryrefslogtreecommitdiffstats
path: root/routing-generator
diff options
context:
space:
mode:
Diffstat (limited to 'routing-generator')
-rw-r--r--routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/status/RoutingStatusClient.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/status/RoutingStatusClient.java b/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/status/RoutingStatusClient.java
index 29bc43b1fc2..70ed84aa014 100644
--- a/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/status/RoutingStatusClient.java
+++ b/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/status/RoutingStatusClient.java
@@ -17,6 +17,7 @@ import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
+import org.apache.http.impl.client.NoopUserTokenHandler;
import org.apache.http.util.EntityUtils;
import java.io.IOException;
@@ -60,6 +61,8 @@ public class RoutingStatusClient extends AbstractComponent implements RoutingSta
.build())
.setSSLContext(provider.getIdentitySslContext())
.setSSLHostnameVerifier(createHostnameVerifier(config))
+ // Required to enable connection pooling, which is disabled by default when using mTLS
+ .setUserTokenHandler(NoopUserTokenHandler.INSTANCE)
.setUserAgent("hosted-vespa-routing-status-client")
.build(),
URI.create(config.configserverVipUrl())