Skip to content

Commit 8b79883

Browse files
authored
default instead of basic tls strategy (#1079)
1 parent f850d57 commit 8b79883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5ClientBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManager;
2929
import org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder;
3030
import org.apache.hc.client5.http.routing.HttpRoutePlanner;
31+
import org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy;
3132
import org.apache.hc.core5.http.Header;
3233
import org.apache.hc.core5.http.HttpHost;
33-
import org.apache.hc.core5.http.nio.ssl.BasicClientTlsStrategy;
3434
import org.apache.hc.core5.util.Timeout;
3535
import org.apache.hc.core5.util.VersionInfo;
3636

@@ -451,7 +451,7 @@ private CloseableHttpAsyncClient createHttpClient() {
451451
.setDefaultConnectionConfig(connectionConfigBuilder.build())
452452
.setMaxConnPerRoute(DEFAULT_MAX_CONN_PER_ROUTE)
453453
.setMaxConnTotal(DEFAULT_MAX_CONN_TOTAL)
454-
.setTlsStrategy(new BasicClientTlsStrategy(sslContext));
454+
.setTlsStrategy(new DefaultClientTlsStrategy(sslContext));
455455

456456
if (connectionManagerCallback != null) {
457457
connectionManagerCallback.accept(connectionManagerBuilder);

0 commit comments

Comments
 (0)