Welcome! Log In Create A New Profile

Advanced

[nginx] Stream: style.

September 29, 2016 06:06AM
details: http://hg.nginx.org/nginx/rev/829468da49d6
branches:
changeset: 6706:829468da49d6
user: Ruslan Ermilov <ru@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];

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Stream: style.

ru@nginx.com 698 September 29, 2016 06:06AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 288
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready