HTTPCLIENT-1123: fixed broken PoolingClientConnectionManager constructor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181208 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d1450f9071
commit
960ee2f581
|
@ -96,14 +96,7 @@ public class PoolingClientConnectionManager implements ClientConnectionManager,
|
|||
public PoolingClientConnectionManager(
|
||||
final SchemeRegistry schemeRegistry,
|
||||
final long timeToLive, final TimeUnit tunit) {
|
||||
super();
|
||||
if (schemeRegistry == null) {
|
||||
throw new IllegalArgumentException("Scheme registry may not be null");
|
||||
}
|
||||
this.schemeRegistry = schemeRegistry;
|
||||
this.dnsResolver = new SystemDefaultDnsResolver();
|
||||
this.operator = createConnectionOperator(schemeRegistry);
|
||||
this.pool = new HttpConnPool(this.log, 2, 20, timeToLive, tunit);
|
||||
this(schemeRegistry, timeToLive, tunit, new SystemDefaultDnsResolver());
|
||||
}
|
||||
|
||||
public PoolingClientConnectionManager(final SchemeRegistry schemeRegistry,
|
||||
|
@ -114,7 +107,7 @@ public class PoolingClientConnectionManager implements ClientConnectionManager,
|
|||
throw new IllegalArgumentException("Scheme registry may not be null");
|
||||
}
|
||||
this.schemeRegistry = schemeRegistry;
|
||||
this.dnsResolver = new SystemDefaultDnsResolver();
|
||||
this.dnsResolver = dnsResolver;
|
||||
this.operator = createConnectionOperator(schemeRegistry);
|
||||
this.pool = new HttpConnPool(this.log, 2, 20, timeToLive, tunit);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue