]> git.kaiwu.me - nginx.git/commitdiff
set current peer to use it in ngx_http_upstream_free_round_robin_peer()
authorIgor Sysoev <igor@sysoev.ru>
Fri, 24 Aug 2007 15:29:50 +0000 (15:29 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 24 Aug 2007 15:29:50 +0000 (15:29 +0000)
src/http/modules/ngx_http_upstream_ip_hash_module.c

index 1c002e532a4c234d28354e41659874e99377be8c..9604d5f89e78d4e3ea1bef7bff2ac5fa0ab8dfd7 100644 (file)
@@ -195,6 +195,8 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data)
         }
     }
 
+    iphp->rrp.current = p;
+
     pc->sockaddr = peer->sockaddr;
     pc->socklen = peer->socklen;
     pc->name = &peer->name;