I can\'t find any documentation on the default httpParams for httpclient 4.1 ?
What\'s the default socket timeout when I do a GET ?
For Apache HttpClient version 4.x upwards
int timeout = 5*60; // seconds (5 minutes)
RequestConfig config = RequestConfig.custom()
.setConnectTimeout(timeout * 1000)
.setConnectionRequestTimeout(timeout * 1000)
.setSocketTimeout(timeout * 1000).build();
HttpClient httpClient =
HttpClientBuilder.create().setDefaultRequestConfig(config).build();