diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-02-16 09:54:52 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-02-16 09:54:52 +0100 |
commit | 7b7f26169ebaab3830c43608d789b2521fb8767b (patch) | |
tree | 8a28bbce8bf023a944227c6039b119bbc40e0a03 /routing-generator/src/main | |
parent | 8bad1ff5a20159e23368f92da95a0a3f53ec56ca (diff) |
Enable connection pooling
Diffstat (limited to 'routing-generator/src/main')
-rw-r--r-- | routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/status/RoutingStatusClient.java | 3 |
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()) |