File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2828import org .apache .hc .client5 .http .impl .nio .PoolingAsyncClientConnectionManager ;
2929import org .apache .hc .client5 .http .impl .nio .PoolingAsyncClientConnectionManagerBuilder ;
3030import org .apache .hc .client5 .http .routing .HttpRoutePlanner ;
31+ import org .apache .hc .client5 .http .ssl .DefaultClientTlsStrategy ;
3132import org .apache .hc .core5 .http .Header ;
3233import org .apache .hc .core5 .http .HttpHost ;
33- import org .apache .hc .core5 .http .nio .ssl .BasicClientTlsStrategy ;
3434import org .apache .hc .core5 .util .Timeout ;
3535import 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 );
You can’t perform that action at this time.
0 commit comments