From b47c1f35e2e421bc0e5be67afb897276324c57a4 Mon Sep 17 00:00:00 2001 From: Jinhua Tan <312841925@qq.com> Date: Wed, 13 May 2020 22:02:47 +0800 Subject: [PATCH] Upstream: jump out of loop after matching the status code. --- src/http/ngx_http_upstream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 89e1319f9..be96be47a 100644 --- 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_request_t *r, ngx_http_upstream_t *u) } #endif + + break; } #if (NGX_HTTP_CACHE)