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 2016/04/10 15:57:25 UTC

[jira] [Commented] (HTTPASYNC-105) socketTimeout is not reset back to default after a request that has specific timeout

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

Oleg Kalnichevski commented on HTTPASYNC-105:
---------------------------------------------

Heikki,

Could you please try out this patch and let me know if it fixes the problem for you?
https://github.com/ok2c/httpasyncclient/commit/67f4d6e5413d8c6ed6879dc351a81925e4398eeb

Oleg

> socketTimeout is not reset back to default after a request that has specific timeout
> ------------------------------------------------------------------------------------
>
>                 Key: HTTPASYNC-105
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-105
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.1.1
>            Reporter: Heikki Vesalainen
>            Assignee: Oleg Kalnichevski
>
> Steps to reproduce:
> - Configure a custom HttpAsyncClient with IOReactorConfig that specifies a socketTimeout (SOTimeout) of 300000ms (5 mins). Have keep-alive be enabled (is by default)
> - Using the HttpAsyncClient, make a successfull GET request that specifies in the RequestConfig a socket timeout of 3000 ms (3 seconds)
> - Make a new request that on the server blocks for 60000ms using the same HttpAsyncClient, but do not specify any timeouts in RequestConfig.
> Expected: the second request should use the same connection and the request should succeed as the server blocks for 60000ms and the default timeout is 300000ms
> Actual: the second request is timed out after 3000ms because the socketTimeout of the connection is never resetted to the default after the request that altered it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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