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/trunk@1788069 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f8eb3bf235
commit
0aff0348ad
|
@ -507,7 +507,8 @@ public class HttpAsyncClientBuilder {
|
|||
if (evictExpiredConnections || evictIdleConnections) {
|
||||
if (connManagerCopy instanceof ConnPoolControl) {
|
||||
final IdleConnectionEvictor connectionEvictor = new IdleConnectionEvictor((ConnPoolControl<?>) connManagerCopy,
|
||||
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
|
||||
|
|
|
@ -867,7 +867,8 @@ public class HttpClientBuilder {
|
|||
if (evictExpiredConnections || evictIdleConnections) {
|
||||
if (connManagerCopy instanceof ConnPoolControl) {
|
||||
final IdleConnectionEvictor connectionEvictor = new IdleConnectionEvictor((ConnPoolControl<?>) connManagerCopy,
|
||||
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