Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 97304 invoked from network); 23 May 2008 09:47:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2008 09:47:10 -0000 Received: (qmail 62662 invoked by uid 500); 23 May 2008 09:47:11 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 62382 invoked by uid 500); 23 May 2008 09:47:10 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 62371 invoked by uid 99); 23 May 2008 09:47:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 02:47:10 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.150.250.44] (HELO ok2consulting.nine.ch) (217.150.250.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 09:46:23 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id 8A3921983F2; Fri, 23 May 2008 11:46:34 +0200 (CEST) Received: from [10.14.1.179] (unknown [213.55.131.1]) by ok2consulting.nine.ch (Postfix) with ESMTP id 3D3311983EB for ; Fri, 23 May 2008 11:46:30 +0200 (CEST) Subject: Re: About releaseconnection method of version 3.1 From: Oleg Kalnichevski To: HttpClient User Discussion In-Reply-To: <4e2bf4c80805230200k3223d06cl2a53d10ab78a4ff0@mail.gmail.com> References: <4e2bf4c80805230200k3223d06cl2a53d10ab78a4ff0@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 23 May 2008 11:25:35 +0200 Message-Id: <1211534735.5997.11.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham version=3.0.3 On Fri, 2008-05-23 at 14:30 +0530, Laxmilal Menaria wrote: > Hello, > > We are using httpclient 3.1 library in our application and sending > multiple request using Multiple threads. Releasing connection when the > thread completes using httpmethod.releaseconnection() method. > > But we encountered that the releaseconnection() method doesn't release > the connection. Laxmilal, #releaseConnection() method is intended to return the connection back to the connection manager. The connection manager per default will keep persistent connections alive, which implies leaving the socket in the established state. > All the connection are in Established state. So now we > are tried httpmethod.abort() in place of > httpmethod.releaseconnection(), We need your comments on it. > Rather call #closeIdleConnections(0) method of the connection manager to close persistent if you do not want them. #abort method is intended to force-terminate connections. You should use it sparingly. Oleg > Thanks, > Laxmilal > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org