mirror of
https://github.com/nginx/nginx.git
synced 2025-06-13 14:32:42 +08:00
avoid endless loop
This commit is contained in:
parent
b32d04f07c
commit
bd99c49794
@ -179,11 +179,10 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data)
|
|||||||
peer->fails = 0;
|
peer->fails = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
|
||||||
iphp->rrp.tried[n] |= m;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iphp->rrp.tried[n] |= m;
|
||||||
|
|
||||||
/* ngx_unlock_mutex(iphp->rrp.peers->mutex); */
|
/* ngx_unlock_mutex(iphp->rrp.peers->mutex); */
|
||||||
|
|
||||||
pc->tries--;
|
pc->tries--;
|
||||||
|
Loading…
Reference in New Issue
Block a user