You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2013/09/20 15:48:52 UTC

[jira] [Resolved] (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:all-tabpanel ]

Oleg Kalnichevski resolved HTTPASYNC-55.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0 Final

Fixed in SVN trunk. Please review / re-test. 

Oleg

PS: When running with context logging on you should be able to see log entry like 'set timeout xxxx'. 
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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