-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
discuss: Allow to set custom timeout for route when route belongs to service or upstream #4258
Comments
Wait for more votes to see if this FR is widely needed. |
@xuchmao Indeed the Envoy xDS protoocl does this. But we still need some real scenarios to understand the necessary for this feature. |
Could you paste some cases in real world? |
Obviously, uploading files should have longer timeout compared to a normal GET/POST |
When a service has multiple interfaces, the timeout period of each interface may be different. |
We can pass through the timeout via ctx: Lines 138 to 140 in 0114c98
PR is welcome! |
Hi, @spacewander I'd like work on this issue. |
I am confused. Doesn't we only need to add a timeout field as we have done with upstream? |
It seems that what you talked about is another thing? If so, we may create another issue to track, and in this thread, let's talk about custom timeout settings. |
Sorry, I misunderstood. |
Looking forward to your PR :) |
The issue can be closed. @tokers |
Well done, thanks for your contribution! |
Issue description
Need to config custom timeout for route when route belongs to service or upstream.
Sometimes we don't want to use timeout configured in service or upstream but use custom timeout instead.
Environment
apisix version (cmd: apisix version): 2.3
The text was updated successfully, but these errors were encountered: