spring-cloud / spring-cloud-openfeign

Support for using OpenFeign in Spring Cloud apps
Apache License 2.0
1.22k stars 786 forks source link

How to set 'max-connections' for okhttp? #757

Closed netkiller closed 1 year ago

netkiller commented 2 years ago

okhttp

I only found a item of config about okhttp

feign.okhttp.enabled=true

when I set up feign.okhttp.enabled=true, I don't know about how to set 'max-connections' for okhttp.

another question

May I use 'feign.httpclient.max-connections=1000' for okhttp?

OlgaMaciaszek commented 1 year ago

Hello @netkiller , yes, that's exactly the right property to use. The properties prefixed feign.httpclient./ spring.cloud.openfeign.httpclient are used for both OkHttpClient and Apache HttpClient.