proxy_next_upstream_timeout behavior

Maxim Dounin mdounin at
Mon Apr 4 14:00:30 UTC 2016


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?


> 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?


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 

Maxim Dounin

More information about the nginx mailing list