Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 95221 invoked from network); 8 Jun 2004 17:29:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Jun 2004 17:29:11 -0000 Received: (qmail 99427 invoked by uid 500); 8 Jun 2004 17:29:21 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 99396 invoked by uid 500); 8 Jun 2004 17:29:20 -0000 Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Commons HttpClient Project" Reply-To: "Commons HttpClient Project" Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 99374 invoked by uid 99); 8 Jun 2004 17:29:20 -0000 Received: from [213.191.73.61] (HELO webmail.hansenet.de) (213.191.73.61) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 08 Jun 2004 10:29:20 -0700 Received: from [192.168.0.3] (62.109.127.135) by webmail.hansenet.de (6.7.015) (authenticated as ok@quimby.de) id 40BDE38A0011CCB6 for commons-httpclient-dev@jakarta.apache.org; Tue, 8 Jun 2004 19:28:33 +0200 Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <825BF35A92B3F0479CC164ECBBE9376E5F04A8@kccxoex06.corp.kpmgconsulting.com> References: <825BF35A92B3F0479CC164ECBBE9376E5F04A8@kccxoex06.corp.kpmgconsulting.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <46E436C6-B971-11D8-96FE-000A95A60B06@quimby.de> Content-Transfer-Encoding: 7bit From: Oliver Koell Subject: Re: Interruption connections Date: Tue, 8 Jun 2004 19:28:37 +0200 To: "Commons HttpClient Project" X-Mailer: Apple Mail (2.618) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks a lot - i give it a try. /Oliver > Hi Oliver > > HttpMethod#abort should be what you want > > Cheers, > > Oleg > > > -----Original Message----- > From: Oliver Koell [mailto:listen@quimby.de] > Sent: Tuesday, June 08, 2004 19:07 > To: Commons HttpClient Project > Subject: Re: Interruption connections > > > Hi Oleg, > > thanks for your reply, and all the good work, too.. > > I'm actually already with the unstable branch. What is the preferred > way to cancel method execution in HttpClient 3.0? > > Is this in any way related to which HttpConnectionManager i'm using? > (i'm using the SimpleHttpConnectionManager because i can assure that > there is only one HttpMethod executed at a time, although in different > SwingWorker threads). > > Regards, Oliver > >> >> Oliver, >> >> Unfortunately there's no (standard and easy) way to interrupt >> execution of an HTTP method in HttpClient 2.0. This limitation has >> been fixed in the unstable branch (HttpClient 3.0). For the stable >> branch (HttpClient 2.0) there's no way around forking the stock >> version of HttpClient or (if your application does not use >> multithreaded connection manager) implementing your own connection >> manager >> >> Sorry >> >> Oleg >> >> -----Original Message----- >> From: Oliver Koell [mailto:listen@quimby.de] >> Sent: Tuesday, June 08, 2004 18:34 >> To: Commons HttpClient Project >> Subject: Interruption connections >> >> >> Hi all, >> >> i'm building a Swing app using HttpClient and, naturally, my users >> want >> to be able to cancel slow HTTP requests (as in a Browser). >> >> What would be the best way to accomplish this? Should i just interrupt >> the HttpClient thread, or are there other (safer) methods to do this? >> >> Thanks in advance >> >> Oliver --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org