We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the route to inherit hosts from service feat, the timeout attribute in the route configuration will be invalid.
route to inherit hosts from service
#4977 (comment)
apisix version
uname -a
nginx -V
openresty -V
curl http://127.0.0.1:9090/v1/server_info
1: create service: { "desc":"service-test", "hosts": ["a.xx.com", "b.xx.com"] } 2: create upstream & create route { "uri": "/ping", "upstream_id": "${upstream_id}", "service_id": "${step1_resp_service_id}", "timeout": { "connect": 5, "send": 5, "read": 5 } } 3: curl -H "Host: a.xx.com" http://apisix-server:port/ping
{ "desc":"service-test", "hosts": ["a.xx.com", "b.xx.com"] }
{ "uri": "/ping", "upstream_id": "${upstream_id}", "service_id": "${step1_resp_service_id}", "timeout": { "connect": 5, "send": 5, "read": 5 } }
The route 5s timeout will be invalid.
Will use nginx proxy_(connect/read/send)_timeout as value. such as: 60s.
none
curl 5s timeout. response 504 code.
The text was updated successfully, but these errors were encountered:
fix: inherit hosts from service, timeout configuration is invalid. ap…
f51c4bc
…ache#5218
No branches or pull requests
Issue description
When using the
route to inherit hosts from service
feat, the timeout attribute in the route configuration will be invalid.#4977 (comment)
Environment
apisix version
): 2.10.0uname -a
): centos7nginx -V
oropenresty -V
): 1.19.3.1curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API): 3.5Steps to reproduce
1: create service:
{ "desc":"service-test", "hosts": ["a.xx.com", "b.xx.com"] }
2: create upstream & create route
{ "uri": "/ping", "upstream_id": "${upstream_id}", "service_id": "${step1_resp_service_id}", "timeout": { "connect": 5, "send": 5, "read": 5 } }
3: curl -H "Host: a.xx.com" http://apisix-server:port/ping
The route 5s timeout will be invalid.
Actual result
Will use nginx proxy_(connect/read/send)_timeout as value. such as: 60s.
Error log
none
Expected result
curl 5s timeout. response 504 code.
The text was updated successfully, but these errors were encountered: