hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heikki Vesalainen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPASYNC-105) socketTimeout is not reset back to default after a request that has specific timeout
Date Mon, 11 Apr 2016 06:54:25 GMT

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

Heikki Vesalainen commented on HTTPASYNC-105:
---------------------------------------------

Is there a snapshot release I could test?

> 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


Mime
View raw message