<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 23, 2015 at 4:02 AM, Valentin V. Bartenev <span dir="ltr"><<a href="mailto:vbart@nginx.com" target="_blank">vbart@nginx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
The documentation is correct, it says: "error, timeout and invalid_header<br>
are always considered unsuccessful attempts, even if they are not specified<br>
in the directive".<br>
<br>
This is not about the default value, this is about nginx behavior.<br>
See the relevant part of the code:<br>
<br>
<a href="http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_upstream.c#l2141" rel="noreferrer" target="_blank">http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_upstream.c#l2141</a><br>
<a href="http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_upstream.c#l2152" rel="noreferrer" target="_blank">http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_upstream.c#l2152</a><br>
<a href="http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_upstream.c#l3811" rel="noreferrer" target="_blank">http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_upstream.c#l3811</a><br>
<br>
(note that the value of the directive isn't checked in this code path)<br>
<br></blockquote><div><br></div><div>Thanks Valentin, I see it now.</div><div><br></div><div>Regards,</div><div>Tolga Ceylan </div></div></div></div>