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

Commit

Permalink
Merge pull request #228 from gunnarmorling/227
Browse files Browse the repository at this point in the history
fixes #227 - Propagating "ConnTimeout" parameter to setConnectTimeout()
  • Loading branch information
Cihat Keser committed Aug 10, 2015
2 parents cd792fc + 27d9b4d commit 7669a14
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 7669a14

Please sign in to comment.