hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiang Qian" <julianq...@google.com>
Subject Re: 4.0 does not retry when connect drop?
Date Thu, 17 Jan 2008 23:16:52 GMT
Hi,
    My last email was wrong
it actually try to re open in above the
                if (!managedConn.isOpen()) {
                    managedConn.open(route, context, params);
                }

Thanks

On Jan 17, 2008 3:00 PM, Jiang Qian <julianqian@google.com> wrote:
> Hi,
>    Here is what I found:
> in DefaultClientRequestDirector execute method line 348
>   if connection drop by server, it will throw NoHttpResponseException,
>  then managedConn.close();
>   and this is allow to retry, so it rerun response =
> requestExec.execute(request, managedConn, context);
>
> goes to HttpRequestExecutor line 201, conn.sendRequestHeader(request);
>
> however, it seems no place to reopen the conn in side sendRequestHeader
> the AbstractHttpClientConnection which implements this method
> is
>     public void sendRequestHeader(final HttpRequest request)
>             throws HttpException, IOException {
>         if (request == null) {
>             throw new IllegalArgumentException("HTTP request may not be null");
>         }
>         assertOpen();
>         this.requestWriter.write(request);
>         this.metrics.incrementRequestCount();
>     }
>
> seems no where it does the re-open,
>
> Is it a bug?
>
> --
> Thanks
> http://www.youtube.com/watch?v=yCM_wQy4YVg
>



-- 
Thanks
http://www.youtube.com/watch?v=yCM_wQy4YVg

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


Mime
View raw message