Skip to content

Commit

Permalink
HSEARCH-2681 Disable lease handling on the Non-blocking HTTP client c…
Browse files Browse the repository at this point in the history
…onnection pool
  • Loading branch information
Sanne authored and yrodiere committed Apr 13, 2017
1 parent d7a7e93 commit f7d7f05
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f7d7f05

Please sign in to comment.