diff options
author | Igor Sysoev <igor@sysoev.ru> | 2005-09-23 18:43:49 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2005-09-23 18:43:49 +0400 |
commit | 09a24396124e911059c2ca405ba55af96e61ede0 (patch) | |
tree | 29cd04f0fa8a3b367d73882aac5a56211384a428 /src/event | |
parent | b6f62a9a1c4f4416a03963882c8f30f3ccff5d0e (diff) |
nginx-0.2.1-RELEASE importrelease-0.2.1
*) Bugfix: if all backend using in load-balancing failed after one
error, then nginx may got caught in an endless loop; the bug had
appeared in 0.2.0.
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/ngx_event_connect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/event/ngx_event_connect.c b/src/event/ngx_event_connect.c index cdcb4c4c6..804226f78 100644 --- a/src/event/ngx_event_connect.c +++ b/src/event/ngx_event_connect.c @@ -360,5 +360,7 @@ ngx_event_connect_peer_failed(ngx_peer_connection_t *pc, ngx_uint_t down) pc->cur_peer = 0; } - pc->tries--; + if (pc->tries) { + pc->tries--; + } } |