hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allen Wang <aw...@netflix.com>
Subject Re: Setting socket read timeout for HttpAsyncClient 4.0-beta4 but not getting exception
Date Fri, 20 Sep 2013 18:11:32 GMT
>From the JIRA, looks like it is fixed in trunk and will be in the final
release. When can I get access to it?

Allen



On Fri, Sep 20, 2013 at 6:00 AM, Oleg Kalnichevski <olegk@apache.org> wrote:

> On Thu, 2013-09-19 at 15:04 -0700, Allen Wang wrote:
> > Hello,
> >
> > I tried to set 2 seconds socket read timeout for HttpAsyncClient using
> the
> > following code:
> >
> > RequestConfig requestConfig = RequestConfig.custom()
> >
> >                 .setConnectTimeout(2000)
> >
> >                 .setSocketTimeout(2000)
> >
> >                 .build();
> >
> >         httpclient =
> > HttpAsyncClients.custom().setDefaultRequestConfig(requestConfig).build();
> >
> >         httpclient.start();
> >
> > Then I tried to hit a localhost REST point where it waits 10 seconds
> before
> > responding. However, I am not getting any exception on the FutureCallback
> > listener I passed into the HttpAsyncClient(HttpUriRequest,
> > FutureCallback<HttpResponse>) call.
> >
>
> Allen,
>
> This must be the same issue as HTTPASYNC-55. I am working on a fix.
>
> https://issues.apache.org/jira/browse/HTTPASYNC-55
>
> Oleg
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message