diff --git a/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java b/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java index 82168eda1..0b0391721 100644 --- a/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java +++ b/httpclient/src/main/java/org/apache/http/client/params/HttpClientParamConfig.java @@ -72,7 +72,7 @@ public final class HttpClientParamConfig { ClientPNames.HANDLE_AUTHENTICATION, true)) .setCircularRedirectsAllowed(params.getBooleanParameter( ClientPNames.ALLOW_CIRCULAR_REDIRECTS, false)) - .setConnectionRequestTimeout(params.getIntParameter( + .setConnectionRequestTimeout((int) params.getLongParameter( ClientPNames.CONN_MANAGER_TIMEOUT, 0)) .setCookieSpec((String) params.getParameter( ClientPNames.COOKIE_POLICY))