changeset 7649:3c8082c3f98a

Upstream: jump out of loop after matching the status code.
author Jinhua Tan <312841925@qq.com>
date Wed, 13 May 2020 22:02:47 +0800
parents 028b16e2798f
children abb6cc8f1dd8
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)