hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Setting socket read timeout for HttpAsyncClient 4.0-beta4 but not getting exception
Date Fri, 20 Sep 2013 13:00:52 GMT
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
View raw message