On Wed, 2016-09-21 at 13:51 +0200, Joan Balagueró wrote:
> Hello,
>
> Im trying to retry NoHttpResponse exceptions with the async client. The
> point is Im 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?
>
Joan
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.
Oleg
-
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org