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.
Just remove the "httpClient" part from your parameter.
http4://<url>?connectTimeout=3000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With