Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 37627 invoked from network); 18 Jan 2007 11:33:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2007 11:33:18 -0000 Received: (qmail 5517 invoked by uid 500); 18 Jan 2007 11:33:24 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 5446 invoked by uid 500); 18 Jan 2007 11:33:23 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 5435 invoked by uid 99); 18 Jan 2007 11:33:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jan 2007 03:33:23 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [203.200.22.222] (HELO southendmsg.SONATA.LOCAL) (203.200.22.222) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jan 2007 03:33:13 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How to implement disconnect Date: Thu, 18 Jan 2007 17:05:02 +0530 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to implement disconnect Thread-Index: Acc68nVxa/qFzahETrubXLGHXvYGNAAAHoVg From: "Lalit Sahoo" To: "HttpClient User Discussion" X-Virus-Checked: Checked by ClamAV on apache.org Hi Roland, I am using only one instance of HttpClient in my application and I am creating this by using httpClient =3D new HttpClient(connManager); So I will have only one instance of MultiThreadedHttpConnectionManager. In this case if I will use MultiThreadedHttpConnectionManager.shutDownAll() then It will shut down all instances including those not related to this instance of HttpClient. Could you please verify my understanding? Regards, Lalit -----Original Message----- From: Roland Weber [mailto:ROLWEBER@de.ibm.com]=20 Sent: Thursday, January 18, 2007 4:45 PM To: HttpClient User Discussion Subject: RE: How to implement disconnect Hello Lalit, > if(mt !=3D null) > { > mt.shutdown(); > } > } >=20 > Another option is to call > MultiThreadedHttpConnectionManager.shutDownALL(). >=20 > In the second option all the static resources will be release and all > threads will be stopped. If you want to shut down _one_ connection manager, use the first option. If you want to shut down _all_ connection managers, use the second option. cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org