hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wright <daddy...@gmail.com>
Subject Disabling retries
Date Thu, 07 Mar 2013 13:39:48 GMT
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

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


Mime
View raw message