RE: Cancelling an httpclient-asynch put

2014-05-05 Thread Boxer, Aaron
>> > I would like to stop all network activity as soon as possible. >> > >> > Is there a way of forcing the client to abort these connections ? >> > >> >> Simply throw an exception either from request producer or response >> consumer. That will immediately terminate the ongoing HTTP message >> e

RE: Cancelling an httpclient-asynch put

2014-05-05 Thread Oleg Kalnichevski
On May 5, 2014 3:54:59 PM CEST, "Boxer, Aaron" wrote: > >> >> On Fri, 2014-05-02 at 16:23 +, Boxer, Aaron wrote: >> > Hello List, >> > >> > What is the best way of cancelling an httpclient-asynch put ? >> > >> > Currently, I am issuing a cancel(true) on the Future I receive back >from the put

RE: Cancelling an httpclient-asynch put

2014-05-05 Thread Boxer, Aaron
> > On Fri, 2014-05-02 at 16:23 +, Boxer, Aaron wrote: > > Hello List, > > > > What is the best way of cancelling an httpclient-asynch put ? > > > > Currently, I am issuing a cancel(true) on the Future I receive back from > > the put call. > > > > But, if I am sending large files, then reque

Re: Cancelling an httpclient-asynch put

2014-05-03 Thread Oleg Kalnichevski
On Sat, 2014-05-03 at 12:57 +, Boxer, Aaron wrote: > > From: Oleg Kalnichevski [ol...@apache.org] > Sent: Saturday, May 03, 2014 7:52 AM > To: HttpClient User Discussion > Subject: Re: Cancelling an httpclient-asynch put > > On Fri

RE: Cancelling an httpclient-asynch put

2014-05-03 Thread Boxer, Aaron
From: Oleg Kalnichevski [ol...@apache.org] Sent: Saturday, May 03, 2014 7:52 AM To: HttpClient User Discussion Subject: Re: Cancelling an httpclient-asynch put On Fri, 2014-05-02 at 16:23 +, Boxer, Aaron wrote: > Hello List, > > What is the

Re: Cancelling an httpclient-asynch put

2014-05-03 Thread Oleg Kalnichevski
On Fri, 2014-05-02 at 16:23 +, Boxer, Aaron wrote: > Hello List, > > What is the best way of cancelling an httpclient-asynch put ? > > Currently, I am issuing a cancel(true) on the Future I receive back from the > put call. > > But, if I am sending large files, then requests that are in the

RE: Cancelling an httpclient-asynch put

2014-05-02 Thread Boxer, Aaron
: Cancelling an httpclient-asynch put Note: the use case I am interested in is when a user has cancelled the upload request. In this case, I would like to clear all network traffic In case the user initiates a new upload. -Original Message- From: Boxer, Aaron Sent: Friday, May 02, 2014 12:24

RE: Cancelling an httpclient-asynch put

2014-05-02 Thread Boxer, Aaron
Also note: I am using the latest trunk version of httpcore, httpclient, and httpasyncclient -Original Message- From: Boxer, Aaron Sent: Friday, May 02, 2014 1:53 PM To: HttpClient User Discussion Subject: RE: Cancelling an httpclient-asynch put Note: the use case I am interested in is

RE: Cancelling an httpclient-asynch put

2014-05-02 Thread Boxer, Aaron
Note: the use case I am interested in is when a user has cancelled the upload request. In this case, I would like to clear all network traffic In case the user initiates a new upload. -Original Message- From: Boxer, Aaron Sent: Friday, May 02, 2014 12:24 PM To: httpclient-users@hc.apac