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/21 12:48:25 UTC

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

Oleg Kalnichevski resolved HTTPASYNC-105.
-----------------------------------------
       Resolution: Fixed
    Fix Version/s: 4.1.2

Committed to SVN 4.1.x branch.

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
>             Fix For: 4.1.2
>
>
> 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