From 97e9336753a4dd8a210be3ebaa7534a690c34152 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 24 Aug 2007 15:30:35 +0000 Subject: update ip_hash to "backup" option --- src/http/modules/ngx_http_upstream_ip_hash_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit