You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/09 09:55:59 UTC
[GitHub] [apisix] tokers commented on a change in pull request #6562: feat: allow set timeout for proxy-mirror
tokers commented on a change in pull request #6562:
URL: https://github.com/apache/apisix/pull/6562#discussion_r822472758
##########
File path: apisix/cli/ops.lua
##########
@@ -513,6 +513,11 @@ Please modify "admin_key" in conf/config.yaml .
end
end
+ local proxy_mirror_timeout
Review comment:
```suggestion
local proxy_mirror_timeouts
```
##########
File path: apisix/cli/ngx_tpl.lua
##########
@@ -765,6 +765,11 @@ http {
}
{% end %}
+ {% if proxy_mirror_timeout then %}
+ {% for k, v in pairs(proxy_mirror_timeout) do %}
+ proxy_{* k *}_timeout {* v *}ms;
Review comment:
This way we may pollute the nginx template, we may write some bad directive like: "proxy_foo_timeout".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org