Hello!
On Sat, Jul 4, 2015 at 4:38 AM, <
hende...@gmail.com> wrote:
> Hi,
> Is it possible to set the timeout separately for each subrequest in
> capture_multi?
No, the subrequest mechanism does not provide timeout protection
itself. Rather, your location targeted by the subrequests control the
timeout protection. See
https://openresty.org/faq.html#can-i-set-timeout-threshold-on-subrequests
>
> Or i should use "proxy_read_timeout" for every location/upstream ?
>
Alas, these proxy_xxx_timeout directives do not support nginx
variables. Otherwise you can pass such settings via different variable
bindings (via the `vars` option). CloudFlare's private fork of nginx
does allow this. Maybe we could backport it to OpenResty's bundled
version of the nginx core :)
Regards,
-agentzh