[
https://issues.apache.org/jira/browse/HTTPCORE-579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vijendra Kulhade closed HTTPCORE-579.
-------------------------------------
Resolution: Not A Problem
I did some testing and research for checking the timeout and found that
HttpAsyncClient Doesn't really support hard request timeout. which means if
socket is open and we are receiving a response with very slow rate, socket will
not timeout.
> http Async client time out doesn't work without setting the proxy
> -----------------------------------------------------------------
>
> Key: HTTPCORE-579
> URL: https://issues.apache.org/jira/browse/HTTPCORE-579
> Project: HttpComponents HttpCore
> Issue Type: Test
> Components: Examples
> Affects Versions: 4.4.10
> Reporter: Vijendra Kulhade
> Priority: Minor
>
> I was using below Example to check the connection timeout. It doesn't seems
> to work in we remove setProxy from asyncHttpClient Builder.
> {code:java}
> // code placeholder
> // Create an HttpClient with the given custom dependencies and configuration.
> CloseableHttpAsyncClient httpclient = HttpAsyncClients.custom()
> .setConnectionManager(connManager)
> .setDefaultCookieStore(cookieStore)
> .setDefaultCredentialsProvider(credentialsProvider)
> //.setProxy(new HttpHost("localhost", 8889))
> .setDefaultRequestConfig(defaultRequestConfig)
> .build();
> {code}
> [http://hc.apache.org/httpcomponents-asyncclient-4.1.x/httpasyncclient/examples/org/apache/http/examples/nio/client/AsyncClientConfiguration.java]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]