Mercurial > hg > nginx-quic
changeset 6706:829468da49d6
Stream: style.
Explicitly initialized peer's max_conns for upstreams created with
variables similar to how it's done in http.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 29 Sep 2016 12:59:13 +0300 |
parents | 29bf0dbc0a77 |
children | 1c9863f9592e |
files | src/stream/ngx_stream_upstream_round_robin.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/stream/ngx_stream_upstream_round_robin.c +++ b/src/stream/ngx_stream_upstream_round_robin.c @@ -347,6 +347,7 @@ ngx_stream_upstream_create_round_robin_p peer[0].weight = 1; peer[0].effective_weight = 1; peer[0].current_weight = 0; + peer[0].max_conns = 0; peer[0].max_fails = 1; peer[0].fail_timeout = 10; peers->peer = peer; @@ -380,6 +381,7 @@ ngx_stream_upstream_create_round_robin_p peer[i].weight = 1; peer[i].effective_weight = 1; peer[i].current_weight = 0; + peer[i].max_conns = 0; peer[i].max_fails = 1; peer[i].fail_timeout = 10; *peerp = &peer[i];