On Thu, 2013-03-07 at 08:39 -0500, Karl Wright wrote:
> Hi all,
>
> We have code that creates a DefaultHttpClient instance for use with
> Solr. The HttpEntity that is created when sending data is not
> reusable, so we've disabled retries (we thought) using the following
> code:
>
> DefaultHttpClient localClient = new
> DefaultHttpClient(connectionManager,params);
>
> // No retries
> localClient.setHttpRequestRetryHandler(new HttpRequestRetryHandler()
> {
> public boolean retryRequest(
> IOException exception,
> int executionCount,
> HttpContext context)
> {
> return false;
> }
>
> });
>
>
> Unfortunately it does not seem to have actually worked; we are still
> seeing "non-reusable stream" retry errors in some cases. Has anybody
> seen this before, and what
> are we doing wrong?
>
> Karl
>
Karl
Requests can also be retried automatically in case of an authentication
challenge and in rate cases due to a redirect. I/O errors is the most
common but not the only possible cause of automatic retries.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]