Vijendra Kulhade created HTTPCORE-579:
-----------------------------------------

             Summary: 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


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]

Reply via email to