GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: The fair load balancer module for nginx
Homepage: http://nginx.localdomain.pl
Clone URL: git://github.com/gnosek/nginx-upstream-fair.git
Fix status report for multiple fair upstreams
gnosek (author)
Sat Sep 20 05:21:43 -0700 2008
commit  62cd562ac673296fac693a77432aedf336fe6146
tree    8a92a21aeba6d8e3e31d6e7f6d4bd82aa39ea8fa
parent  43f4359edcada246031f6e717af1bde8436a2524
...
1132
1133
1134
 
 
 
1135
1136
1137
...
1172
1173
1174
 
1175
1176
1177
...
1132
1133
1134
1135
1136
1137
1138
1139
1140
...
1175
1176
1177
1178
1179
1180
1181
0
@@ -1132,6 +1132,9 @@ ngx_http_upstream_fair_walk_status(ngx_pool_t *pool, ngx_chain_t *cl, ngx_int_t
0
 
0
     if (node->left != sentinel) {
0
         ngx_http_upstream_fair_walk_status(pool, cl, length, node->left, sentinel);
0
+ if (cl->next) {
0
+ cl = cl->next;
0
+ }
0
     }
0
 
0
     size = 200 + s_node->peers->number * 120; /* LOTS of slack */
0
@@ -1172,6 +1175,7 @@ ngx_http_upstream_fair_walk_status(ngx_pool_t *pool, ngx_chain_t *cl, ngx_int_t
0
         cl->buf->last_buf = 0;
0
     }
0
 
0
+ cl = cl->next;
0
 next:
0
 
0
     if (node->right != sentinel) {

Comments

    No one has commented yet.