[nginx] Stream: style.
Ruslan Ermilov
ru at nginx.com
Thu Sep 29 10:05:12 UTC 2016
details: http://hg.nginx.org/nginx/rev/829468da49d6
branches:
changeset: 6706:829468da49d6
user: Ruslan Ermilov <ru at nginx.com>
date: Thu Sep 29 12:59:13 2016 +0300
description:
Stream: style.
Explicitly initialized peer's max_conns for upstreams created with
variables similar to how it's done in http.
diffstat:
src/stream/ngx_stream_upstream_round_robin.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r 29bf0dbc0a77 -r 829468da49d6 src/stream/ngx_stream_upstream_round_robin.c
--- a/src/stream/ngx_stream_upstream_round_robin.c Thu Sep 22 19:32:47 2016 +0300
+++ b/src/stream/ngx_stream_upstream_round_robin.c Thu Sep 29 12:59:13 2016 +0300
@@ -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];
More information about the nginx-devel
mailing list