hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Retries with the async client
Date Fri, 23 Sep 2016 17:31:35 GMT
On Wed, 2016-09-21 at 13:51 +0200, Joan Balagueró wrote:
> Hello,
> I’m trying to retry ‘NoHttpResponse’ exceptions with the async client. The
> point is I’m unable to generate this kind of error from my server. So my
> question is: does this kind of exceptions that can be retried reach the
> callback? In my case the  HttpAsyncResponseConsumer.responseReceived (so
> they could be retried in this method),or the exception is thrown in the
> CloseableHttpAsyncClient.execute method? 


No, exceptions cannot be retried from the callback. You probably will
have to create a dedicated thread that can put those requests back into
the execution queue. I understand this sounds cumbersome. I intent to
make this process easier (or automatic) in HC 5.0.


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

View raw message