Xilai Dai created CAMEL-19753:
---------------------------------

             Summary: Too many TLS connections opened when cxfrs calling a 
service via HTTPS
                 Key: CAMEL-19753
                 URL: https://issues.apache.org/jira/browse/CAMEL-19753
             Project: Camel
          Issue Type: Bug
    Affects Versions: 3.20.6
            Reporter: Xilai Dai
         Attachments: TLS_connections.png, test-cxfrs-https.zip, test-server.zip

Given a simple route:
{code}
            from("timer:cTimer_1" + "?period=" + 1 + "&repeatCount=" + 200 + 
"&delay=" + 100)
                                .setHeader(org.apache.camel.Exchange.HTTP_PATH, 
simple(""))
                                
.setHeader(org.apache.camel.Exchange.HTTP_METHOD, constant("GET"))
                                
.setHeader(org.apache.camel.Exchange.ACCEPT_CONTENT_TYPE, 
constant("application/json"))
                                .inOut("cxfrs://" + 
"https://localhost:9001/services/B"; + "?providers=#providers"
                                                                + 
"&loggingFeatureEnabled=false")
                                .to("log:cxfrs_eval_demo_service.cLog_1" + 
"?level=WARN" + "&showAll=" + true + "&multiline=" + true); 
{code}

there are many TLS connections opened when running this route.

whereas, the camel-http as a provider works as expected (only few TLS 
connections opened as expected)
{code}
        from("timer:cTimer_2" + "?period=" + 1 + "&repeatCount=" + 200 + 
"&delay=" + 100)
                                .setHeader("CamelHttpMethod", constant("GET"))
                                .to("https://localhost:9001/services/B";)
                                .to("log:cxfrs_eval_demo_service.cLog_1" + 
"?level=WARN" + "&showAll=" + true + "&multiline=" + true);  
{code}

Attached test-cxfrs-https.zip , test-server.zip for easily reproduce the issue.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to