From ab3ee867ee60302fcbe8a5990afae4058b6425a1 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Mon, 13 Oct 2025 12:06:07 +0200 Subject: [PATCH] default instead of basic tls strategy --- .../transport/rest5_client/low_level/Rest5ClientBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5ClientBuilder.java b/java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5ClientBuilder.java index e093efe78..d35ffac3f 100644 --- a/java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5ClientBuilder.java +++ b/java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5ClientBuilder.java @@ -28,9 +28,9 @@ import org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager; import org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder; import org.apache.hc.client5.http.routing.HttpRoutePlanner; +import org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy; import org.apache.hc.core5.http.Header; import org.apache.hc.core5.http.HttpHost; -import org.apache.hc.core5.http.nio.ssl.BasicClientTlsStrategy; import org.apache.hc.core5.util.Timeout; import org.apache.hc.core5.util.VersionInfo; @@ -451,7 +451,7 @@ private CloseableHttpAsyncClient createHttpClient() { .setDefaultConnectionConfig(connectionConfigBuilder.build()) .setMaxConnPerRoute(DEFAULT_MAX_CONN_PER_ROUTE) .setMaxConnTotal(DEFAULT_MAX_CONN_TOTAL) - .setTlsStrategy(new BasicClientTlsStrategy(sslContext)); + .setTlsStrategy(new DefaultClientTlsStrategy(sslContext)); if (connectionManagerCallback != null) { connectionManagerCallback.accept(connectionManagerBuilder);