Skip to content

Commit

Permalink
Use shorter HTTP client timeout for CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Apr 12, 2016
1 parent 19939b1 commit e509407
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ private static HttpClientConfig getHttpClientConfig(
Optional<String> kerberosRemoteServiceName,
boolean authenticationEnabled)
{
HttpClientConfig httpClientConfig = new HttpClientConfig().setConnectTimeout(new Duration(10, TimeUnit.SECONDS));
HttpClientConfig httpClientConfig = new HttpClientConfig()
.setConnectTimeout(new Duration(5, TimeUnit.SECONDS))
.setRequestTimeout(new Duration(5, TimeUnit.SECONDS));

socksProxy.ifPresent(httpClientConfig::setSocksProxy);

Expand Down

0 comments on commit e509407

Please sign in to comment.