From: Jinhua Tan <312841925@qq.com> Date: Wed, 13 May 2020 14:02:47 +0000 (+0800) Subject: Upstream: jump out of loop after matching the status code. X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=b47c1f35e2e421bc0e5be67afb897276324c57a4;p=nginx.git 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 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)