]> git.kaiwu.me - nginx.git/commitdiff
Upstream: jump out of loop after matching the status code.
authorJinhua Tan <312841925@qq.com>
Wed, 13 May 2020 14:02:47 +0000 (22:02 +0800)
committerJinhua Tan <312841925@qq.com>
Wed, 13 May 2020 14:02:47 +0000 (22:02 +0800)
src/http/ngx_http_upstream.c

index 89e1319f9390f1b8e23bfb49e807454832661476..be96be47ad3c1ca244c7e3e215463c51284d9a2e 100644 (file)
@@ -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)