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

#227 Propagating "ConnTimeout" parameter to setConnectTimeout() #228

Merged
merged 1 commit into from
Aug 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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