Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AEF663AD for ; Fri, 15 Jul 2011 19:28:30 +0000 (UTC) Received: (qmail 41177 invoked by uid 500); 15 Jul 2011 19:28:30 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 41121 invoked by uid 500); 15 Jul 2011 19:28:29 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 41109 invoked by uid 99); 15 Jul 2011 19:28:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 19:28:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 19:28:23 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BD1A8599D0 for ; Fri, 15 Jul 2011 19:28:01 +0000 (UTC) Date: Fri, 15 Jul 2011 19:28:01 +0000 (UTC) From: "Jon Moore (JIRA)" To: dev@hc.apache.org Message-ID: <825192925.18484.1310758081771.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <864238732.18133.1310752680001.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HTTPCLIENT-1108) different connection reuse strategy would reduce number of open connections MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066150#comment-13066150 ] Jon Moore commented on HTTPCLIENT-1108: --------------------------------------- Sure, will do. Am in the middle of trying to merge the adaptive connection pool stuff back down too. > different connection reuse strategy would reduce number of open connections > --------------------------------------------------------------------------- > > Key: HTTPCLIENT-1108 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1108 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpClient > Affects Versions: 4.1.1 > Reporter: Jon Moore > Assignee: Jon Moore > Priority: Minor > Fix For: 4.1.2 > > > Currently, the ThreadSafeClientConnManager reuses persistent connections in a round-robin fashion: when the connection is checked back into the pool, it is added to a queue of available connections for later use. This has the perhaps unintended effect that the client may keep open more connections than needed, because the "last used" time keeps getting updated and none of the connections can get reclaimed via closeIdleConnections(). > Exchanging the queue (FIFO) for a stack (LIFO) would result in extra connections actually becoming idle for long enough to be reclaimed. > I have a working patch for this; just need to get my act together to get it in. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org