Welcome! Log In Create A New Profile

Advanced

[nginx] Modules compatibility: down flag promoted to a bitmask.

Maxim Dounin
September 29, 2016 01:28PM
details: http://hg.nginx.org/nginx/rev/63b8b157b776
branches:
changeset: 6713:63b8b157b776
user: Maxim Dounin <mdounin@mdounin.ru>
date: Thu Sep 29 18:06:05 2016 +0300
description:
Modules compatibility: down flag promoted to a bitmask.

It is to be used as a bitmask with various bits set/reset when appropriate.
Any bit set means that the peer should not be used, that is, exactly what
current checks do, no additional changes required.

diffstat:

src/http/ngx_http_upstream_round_robin.h | 2 +-
src/stream/ngx_stream_upstream_round_robin.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff --git a/src/http/ngx_http_upstream_round_robin.h b/src/http/ngx_http_upstream_round_robin.h
--- a/src/http/ngx_http_upstream_round_robin.h
+++ b/src/http/ngx_http_upstream_round_robin.h
@@ -38,7 +38,7 @@ struct ngx_http_upstream_rr_peer_s {
ngx_msec_t slow_start;
ngx_msec_t start_time;

- ngx_uint_t down; /* unsigned down:1; */
+ ngx_uint_t down;

#if (NGX_HTTP_SSL)
void *ssl_session;
diff --git a/src/stream/ngx_stream_upstream_round_robin.h b/src/stream/ngx_stream_upstream_round_robin.h
--- a/src/stream/ngx_stream_upstream_round_robin.h
+++ b/src/stream/ngx_stream_upstream_round_robin.h
@@ -38,7 +38,7 @@ struct ngx_stream_upstream_rr_peer_s {
ngx_msec_t slow_start;
ngx_msec_t start_time;

- ngx_uint_t down; /* unsigned down:1; */
+ ngx_uint_t down;

#if (NGX_STREAM_SSL)
void *ssl_session;

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

[nginx] Modules compatibility: down flag promoted to a bitmask.

Maxim Dounin 201 September 29, 2016 01:28PM



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

Online Users

Guests: 193
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