You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Nhan Thuan Nguyen (JIRA)" <ji...@apache.org> on 2014/07/21 17:00:51 UTC

[jira] [Commented] (HTTPASYNC-55) Socket timeout set in RequestConfig does not work

    [ https://issues.apache.org/jira/browse/HTTPASYNC-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14068595#comment-14068595 ] 

Nhan Thuan Nguyen commented on HTTPASYNC-55:
--------------------------------------------

Hi Oleg, status for this bug indicates 'Resolved' in version 4.0 Final but the fixes were not merged in the actual release. I'm still having this issue. Any ideas what happen?

> Socket timeout set in RequestConfig does not work
> -------------------------------------------------
>
>                 Key: HTTPASYNC-55
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-55
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.0-beta4
>            Reporter: Piotr Bartosiewicz
>             Fix For: 4.0 Final
>
>
> Should this code work?
> final RequestConfig requestConfig = RequestConfig.custom()
>                 .setConnectTimeout(connectTimeout)
>                 .setSocketTimeout(socketTimeout)
>                 .build();
> final CloseableHttpAsyncClient httpClient = HttpAsyncClients.custom()
>                 .setDefaultRequestConfig(requestConfig)
>                 .build();
> At least socket timeout does not work. 
> I fount a workaround to set this timeouts in IOReactor.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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