-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feign clients default ConnectTimeout & ReadTimeout aren't overriden by Ribbon configuration #696
Comments
I don't see how I haven't verified the problem, just that we don't invoke the empty |
Hi spencergibb, let me explain it further. The sequence is as follows:
Notice that I hope I managed to explain myself... |
Yes, very well explained. A workaround is to create a |
👍 Just to give a +1 to this issue as I was also debugging the same issue yesterday and the workaround force the clients to re-write the interface that can be provided by the servers in a separated jar |
+1 just ran into this issue as well. As suggested by @spencergibb here is the workaround I'm using.
|
@codependent What's the |
Given a Feign client with the following Ribbon configuration:
One would expect that ConnectTimeout and ReadTimeout are 250 and 1000. However they never override Feign's defaults.
In
org.springframework.cloud.netflix.feign.ribbon.FeignLoadBalancer.execute()
this.connectTimeout
is correct (250), but what actually is gotten fromconfigOverride.get()
is 10000. This value comes fromFeign.Options
' default value:Shouldn't
FeignLoadBalancer.execute()
prioritize Ribbon's configuration over the default Feign's Request.Options? If not, how are we supposed to override it?The text was updated successfully, but these errors were encountered: