proxy_next_upstream default

Tolga Ceylan tolga.ceylan at gmail.com
Thu Dec 24 01:24:27 UTC 2015


On Wed, Dec 23, 2015 at 4:02 AM, Valentin V. Bartenev <vbart at nginx.com>
wrote:

>
> The documentation is correct, it says: "error, timeout and invalid_header
> are always considered unsuccessful attempts, even if they are not specified
> in the directive".
>
> This is not about the default value, this is about nginx behavior.
> See the relevant part of the code:
>
> http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_upstream.c#l2141
> http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_upstream.c#l2152
> http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_upstream.c#l3811
>
> (note that the value of the directive isn't checked in this code path)
>
>
Thanks Valentin, I see it now.

Regards,
Tolga Ceylan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20151223/2a1c7791/attachment.html>


More information about the nginx-devel mailing list