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

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

[~dmvolod] The same is configured in camel-context.xml file at the component 
level, since i didn't want to set this at each endpointURI.

 
{code:java}
<bean id="http4" class="org.apache.camel.component.http4.HttpComponent">
 <property name="camelContext" ref="mycamelClients"/>
 <property name="connectionsPerRoute" value="40"/>
</bean>{code}
It works if the endpointURI is over *HTTP*. 
private String endpointURI = "http4://reqres.in/api/users?page=2
The parameter connectionsPerRoute is not considered only when it is over 
*HTTPS*.
private String endpointURI = "https4://reqres.in/api/users?page=2
 

 

 

> 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