# HG changeset patch # User Jinhua Tan <312841925@qq.com> # Date 1589378567 -28800 # Node ID 3c8082c3f98ab7fdec8a598b55609701452b5254 # Parent 028b16e2798f8ec4c6a3d042a6ac8a07f7262690 Upstream: jump out of loop after matching the status code. diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2502,6 +2502,8 @@ ngx_http_upstream_test_next(ngx_http_req } #endif + + break; } #if (NGX_HTTP_CACHE)