HTTPCLIENT-1835: evictExpiredConnections no longer causes the evictIdleConnections behaviour to be enabled when evictIdleConnections is not explicitly enabled
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1788066 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d6bfb3df9c
commit
2635028db0
|
@ -1207,7 +1207,8 @@ public class HttpClientBuilder {
|
|||
|
||||
if (evictExpiredConnections || evictIdleConnections) {
|
||||
final IdleConnectionEvictor connectionEvictor = new IdleConnectionEvictor(cm,
|
||||
maxIdleTime > 0 ? maxIdleTime : 10, maxIdleTimeUnit != null ? maxIdleTimeUnit : TimeUnit.SECONDS);
|
||||
maxIdleTime > 0 ? maxIdleTime : 10, maxIdleTimeUnit != null ? maxIdleTimeUnit : TimeUnit.SECONDS,
|
||||
maxIdleTime, maxIdleTimeUnit);
|
||||
closeablesCopy.add(new Closeable() {
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue