[
https://issues.apache.org/jira/browse/CAMEL-13325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16792545#comment-16792545
]
Arthanarisamy Annamalai commented on CAMEL-13325:
-------------------------------------------------
{code:java}
HttpComponent httpComponent = (HttpComponent) context.getComponent("http");
httpComponent.setConnectionsPerRoute(1);
{code}
Behaviour looks to same between camel-http and came-http4.
Setting connectionPerRoute as above works only for HTTP requests and default
value that is 20 and 200 are considered while protocol used is HTTPS.
> 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
>
> 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)