diff --git a/elasticsearch/src/main/java/org/hibernate/search/elasticsearch/client/impl/DefaultElasticsearchClientFactory.java b/elasticsearch/src/main/java/org/hibernate/search/elasticsearch/client/impl/DefaultElasticsearchClientFactory.java index b89a8e628a4..3506e40bd42 100644 --- a/elasticsearch/src/main/java/org/hibernate/search/elasticsearch/client/impl/DefaultElasticsearchClientFactory.java +++ b/elasticsearch/src/main/java/org/hibernate/search/elasticsearch/client/impl/DefaultElasticsearchClientFactory.java @@ -147,6 +147,7 @@ private HttpAsyncClientBuilder customizeHttpClientConfig(String propertyPrefix, private RequestConfig.Builder customizeRequestConfig(String propertyPrefix, Properties properties, RequestConfig.Builder builder) { return builder + .setConnectionRequestTimeout( 0 ) //Disable lease handling for the connection pool! See also HSEARCH-2681 .setSocketTimeout( ConfigurationParseHelper.getIntValue( properties, propertyPrefix + ElasticsearchEnvironment.SERVER_READ_TIMEOUT,