Skip to content
Browse files

Store our peers info instead of round_robin's [crash fix]

  • Loading branch information...
1 parent e20d707 commit bf2b616e8e5994f47facc1e9a080ec3c3db0ffa4 @gnosek committed Nov 1, 2007
Showing with 1 addition and 0 deletions.
  1. +1 −0 ngx_http_upstream_fair_module.c
View
1 ngx_http_upstream_fair_module.c
@@ -150,6 +150,7 @@ ngx_http_upstream_init_fair(ngx_conf_t *cf, ngx_http_upstream_srv_conf_t *us)
return NGX_ERROR;
}
peers->rrp = us->peer.data;
+ us->peer.data = peers;
n = peers->rrp->number;
/* a plain malloc, not nginx's pool allocator functions */

0 comments on commit bf2b616

Please sign in to comment.
Something went wrong with that request. Please try again.