From 6e6b8e5180e94da14efd60f4735416b9b873ae4b Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Fri, 22 May 2015 07:32:47 +0000 Subject: [PATCH] Reduced default validate after inactivity setting from 5 sec to 2 sec git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1681021 13f79535-47bb-0310-9956-ffa450edef68 --- .../http/impl/conn/PoolingHttpClientConnectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient/src/main/java/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java b/httpclient/src/main/java/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java index 4b061954c..ce5de2545 100644 --- a/httpclient/src/main/java/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java +++ b/httpclient/src/main/java/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.java @@ -173,7 +173,7 @@ public class PoolingHttpClientConnectionManager this.configData = new ConfigData(); this.pool = new CPool(new InternalConnectionFactory( this.configData, connFactory), 2, 20, timeToLive, tunit); - this.pool.setValidateAfterInactivity(5000); + this.pool.setValidateAfterInactivity(2000); this.connectionOperator = Args.notNull(httpClientConnectionOperator, "HttpClientConnectionOperator"); this.isShutDown = new AtomicBoolean(false); }