On Tue, 2016-01-26 at 21:38 +0530, Shushant Arora wrote:
> Thanks !
> 
> can this lead to duplicate if i retry a cancelled request. I mean is there
> any guarantee that cancelled request is never reached to server .

HTTP protocol does not provide any delivery guarantees. So, your
application needs to be prepared to deal with request retries anyway.

Oleg

> 
> On Tue, Jan 26, 2016 at 8:52 PM, Oleg Kalnichevski <ol...@apache.org> wrote:
> 
> > On Mon, 2016-01-25 at 16:45 +0530, Shushant Arora wrote:
> > > I am using org.apache.http.impl.nio.client.CloseableHttpAsyncClient
> > > (httpasyncclient-4.1.jar).
> > >
> > > In callbackof httpGet Request i.e FutureCallback<HttpResponse> there are
> > 3
> > > methods .
> > >
> > > When does cancelled() method being called ? Is cancelled does not mean
> > > failure ?
> > >
> >
> > #cancelled basically means operation was attempted (for instance, due to
> > client shutdown) or canceled prematurely by the caller.
> >
> > Oleg
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> > For additional commands, e-mail: httpclient-users-h...@hc.apache.org
> >
> >



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to