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

Arthanarisamy Annamalai commented on CAMEL-13325:
-------------------------------------------------

[~dmvolod] Have attached the simple test and attached is the maven project.

You may use
{code:java}
mvn clean install exec:java{code}
to execute the test case.

Expected is that it should open 40 connections to [https://reqres.in/api/] url 
but only 20 are opened as it is considering default parameters for HTTPS URL.

Please monitor ESTABLISHED connections to above service endpoint using command
{code:java}
netstat -an 
{code}
[^camel-http-client.zip]

> HttpConnectionManagerParams not working for HTTPS URL
> -----------------------------------------------------
>
>                 Key: CAMEL-13325
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13325
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>    Affects Versions: 2.17.3
>            Reporter: Arthanarisamy Annamalai
>            Priority: Minor
>         Attachments: camel-http-client.zip
>
>
> We use Apache Camel's *camel-http* component to integrate with HTTP & HTTPS 
> endpoints, *HttpConnectionManagerParams* is used to configure 
> defaultconnectionsPerHost and maxTotalConnections.
> {code:java}
> <bean 
> class="org.apache.commons.httpclient.params.HttpConnectionManagerParams" 
> id="MyHttpConnectionManagerParams"> 
>     <property name="defaultMaxConnectionsPerHost" value="20"/> 
>     <property name="maxTotalConnections" value="200"/> 
> </bean>
> {code}
> Above parameters takes effect only if the endpoint URL is over HTTP, same 
> configuration becomes void and default *HttpConnectionManager* takes effect 
> when endpoint is over HTTPS.
> With default  *HttpConnectionManager,* connections are limited to 2 per host 
> and all user requests gets queued up and response time increased 
> exponentially. 
>  
> Is there something to be additionally configured for HTTPS url? 
>   



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to