Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

apache camel http4 connectionTimeout

Tags:

apache-camel

The requirement is to set the connectionTimeout for http endpoint. i am using http4 component and http protocol. httpClient.connectTimeout is working for https and not for http.

http4://<url>?keepAlive=true&httpClientMinThreads=10&httpClientMaxThreads=200&sync=true&throwExceptionOnFailure=false&bridgeEndpoint=true&httpClient.connectTimeout=1000

and tried setting the connectionTimeToLive=1 parameter also in http4 component bean and it is not working.

I found socketTimeout parameter is working. But the requirement is to set connectionTimeout.

Please suggest is there any way to set the connectionTimeout parameter.

like image 884
anonymous Avatar asked Dec 05 '25 09:12

anonymous


1 Answers

Just remove the "httpClient" part from your parameter.

http4://<url>?connectTimeout=3000
like image 53
J D Avatar answered Dec 09 '25 16:12

J D



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!