Hello!

On Fri, Apr 01, 2016 at 08:43:56AM -0700, Frank Liu wrote:

> If I set proxy_next_upstream_timeout to 50 second, will nginx break the
> current upstream connection at 50 second and fail the request?

No.

> Or will it
> wait until current one finishes (or read timeout) then decide whether it
> should try next upstream and find out it is already more than 50 so fail
> the request?

Yes.

The proxy_next_upstream_timeout directive only sets the time period 
during which the proxy_next_upstream directive is allowed to work.  It 
does nothing else, and won't anyhow influence current upstream 
connection.

-- 
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to