diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-08-24 15:30:35 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-08-24 15:30:35 +0000 |
| commit | 97e9336753a4dd8a210be3ebaa7534a690c34152 (patch) | |
| tree | 905c73755c6fbc6098473d27832b637ebb65e0a4 | |
| parent | 9fdca0a11755cd2609818e825477ddbbac54ef96 (diff) | |
| download | nginx-97e9336753a4dd8a210be3ebaa7534a690c34152.tar.gz nginx-97e9336753a4dd8a210be3ebaa7534a690c34152.tar.bz2 | |
update ip_hash to "backup" option
| -rw-r--r-- | src/http/modules/ngx_http_upstream_ip_hash_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_upstream_ip_hash_module.c b/src/http/modules/ngx_http_upstream_ip_hash_module.c index 9604d5f89..1d13481a9 100644 --- a/src/http/modules/ngx_http_upstream_ip_hash_module.c +++ b/src/http/modules/ngx_http_upstream_ip_hash_module.c @@ -140,7 +140,7 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data) /* TODO: cached */ - if (iphp->tries > 20 || iphp->rrp.peers->number == 1) { + if (iphp->tries > 20 || iphp->rrp.peers->single) { return iphp->get_rr_peer(pc, &iphp->rrp); } |
