Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
4.5.13
-
None
-
None
Description
The class HttpClientBuilder does not configure correctly the HttpClientConnectionManager properties "maxTotal" and "defaultMaxPerRoute" if I already provided a ConnectionManager.
I sugest that the code on line 1000 should be put out of the "if" that tests if the "connManagerCopy" is null. Some think like this:
if (connManagerCopy instanceof ConnPoolControl) {
ConnPoolControl<?> connPoolControl = (ConnPoolControl<?>) connManagerCopy;
if (systemProperties) {
String s = System.getProperty("http.keepAlive", "true");
if ("true".equalsIgnoreCase(s))
}
if (maxConnTotal > 0)
if (maxConnPerRoute > 0)
{ connPoolControl.setDefaultMaxPerRoute(maxConnPerRoute); }}