Open Siegolas opened 2 months ago
@Siegolas I just had to debug this sadly . The httpclient property will not be applied to a client located at:
openfeign:
httpclient:
nor will it work under the default client If you want it to be set properly move the httpclient underneth your named feign client
my-feignclient:
httpclient:
foo:
That will work.
I'm creating feign clients using method
FeignClientBuilder(context)
. I'm trying to check the effect of "maxConnections" and "maxConnectionsPerRoute" properties from "spring.cloud.openfeign.httpclient" it seems they are not applied. I'm applying the properties:I'm using spring-cloud-openfeign version 4.0.3
A sample of how I create the feign client:
However when I force the client to be ApacheHttpClient one and I manually apply the mentioned properties it works as expected and when applying load testing the execution produces timeouts
So is there anything wrong in my setup? How can I achieve httpclient props max-connections and max-connections-per-route from "spring.cloud.openfeign.httpclient" are properly applied when using
FeignClientBuilder
? IsFeignClientBuilder
applying "spring.cloud.openfeign.httpclient" properties for the default http client?Thanks in advance