Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
#227 Propagating "ConnTimeout" parameter to setConnectTimeout()
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Aug 10, 2015
1 parent cd792fc commit 27d9b4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ protected HttpRoutePlanner getRoutePlanner() {
// Extension point
protected RequestConfig getRequestConfig() {
return RequestConfig.custom()
.setConnectionRequestTimeout(httpClientConfig.getConnTimeout())
.setConnectTimeout(httpClientConfig.getConnTimeout())
.setSocketTimeout(httpClientConfig.getReadTimeout())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void clientCreationWithTimeout() {
factory.setHttpClientConfig(httpClientConfig);
final RequestConfig defaultRequestConfig = factory.getRequestConfig();
assertNotNull(defaultRequestConfig);
assertEquals(150, defaultRequestConfig.getConnectionRequestTimeout());
assertEquals(150, defaultRequestConfig.getConnectTimeout());
assertEquals(300, defaultRequestConfig.getSocketTimeout());
}

Expand Down

0 comments on commit 27d9b4d

Please sign in to comment.