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 committed Apr 12, 2017
1 parent 38222c6 commit bdd8155
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 bdd8155

Please sign in to comment.