From: Igor Sysoev Date: Fri, 24 Aug 2007 15:29:50 +0000 (+0000) Subject: set current peer to use it in ngx_http_upstream_free_round_robin_peer() X-Git-Tag: release-0.6.9~10 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=9fdca0a11755cd2609818e825477ddbbac54ef96;p=nginx.git set current peer to use it in ngx_http_upstream_free_round_robin_peer() --- 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 1c002e532..9604d5f89 100644 --- a/src/http/modules/ngx_http_upstream_ip_hash_module.c +++ b/src/http/modules/ngx_http_upstream_ip_hash_module.c @@ -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;