diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-08-24 15:29:50 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-08-24 15:29:50 +0000 |
| commit | 9fdca0a11755cd2609818e825477ddbbac54ef96 (patch) | |
| tree | 84fee4085ee50999cad0569fde516eac4ed8a5c3 | |
| parent | 27db2b19007f2fbcac58d75c19577301226d4e6c (diff) | |
| download | nginx-9fdca0a11755cd2609818e825477ddbbac54ef96.tar.gz nginx-9fdca0a11755cd2609818e825477ddbbac54ef96.tar.bz2 | |
set current peer to use it in ngx_http_upstream_free_round_robin_peer()
| -rw-r--r-- | src/http/modules/ngx_http_upstream_ip_hash_module.c | 2 |
1 files changed, 2 insertions, 0 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 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; |
