Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix status report for multiple fair upstreams

  • Loading branch information...
commit 62cd562ac673296fac693a77432aedf336fe6146 1 parent 43f4359
@gnosek authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 ngx_http_upstream_fair_module.c
View
4 ngx_http_upstream_fair_module.c
@@ -1132,6 +1132,9 @@ ngx_http_upstream_fair_walk_status(ngx_pool_t *pool, ngx_chain_t *cl, ngx_int_t
if (node->left != sentinel) {
ngx_http_upstream_fair_walk_status(pool, cl, length, node->left, sentinel);
+ if (cl->next) {
+ cl = cl->next;
+ }
}
size = 200 + s_node->peers->number * 120; /* LOTS of slack */
@@ -1172,6 +1175,7 @@ ngx_http_upstream_fair_walk_status(ngx_pool_t *pool, ngx_chain_t *cl, ngx_int_t
cl->buf->last_buf = 0;
}
+ cl = cl->next;
next:
if (node->right != sentinel) {
Please sign in to comment.
Something went wrong with that request. Please try again.