Skip to content

Commit

Permalink
disable limit_upstream_tries when xxx_upstream_tries is set to 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
supertcy committed Oct 8, 2013
1 parent 7bbf158 commit 0ecda70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http/ngx_http_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -3243,6 +3243,7 @@ ngx_http_upstream_next(ngx_http_request_t *r, ngx_http_upstream_t *u,
u->state->status = status;

if (u->conf->upstream_tries != NGX_CONF_UNSET_UINT
&& u->conf->upstream_tries != 0
&& r->us_tries++ >= u->conf->upstream_tries)
{
ngx_http_upstream_finalize_request(r, u, status);
Expand Down

0 comments on commit 0ecda70

Please sign in to comment.