Hello Camel riders,

We found issue when enrich/simple/http4 component opens new TCP connection for 
each different endpoint it invokes. Case unfortunately happens even when 
invoking url like:

https://localhost/api/v1/user/${id}<https://localhost/api/v1/user/$%7bid%7d>

and id will change on every request. Connection is reused only when url exactly 
matches. We experienced these connections not to be closed properly and causing 
Sockets in unknown state – hung up.

Troublesome code:

<enrich>
  <simple>${header.targetUrl}</simple>
</enrich>

And header.targetUrl = https4://localhost/..

Https4 component is registered beforehand as new bean including 
sslContextParameters bean.

More details:
https://github.com/pelikanmartin/camel-enrich-too-many-connections

Is it standard behavior?

Thank you,
Martin

Reply via email to