Welcome! Log In Create A New Profile

Advanced

[nginx] Modules compatibility: removed unneeded NGX_HAVE_REUSEPORT checks.

October 03, 2016 09:02AM
details: http://hg.nginx.org/nginx/rev/9170240f1241
branches:
changeset: 6720:9170240f1241
user: Maxim Dounin <mdounin@mdounin.ru>
date: Mon Oct 03 15:58:29 2016 +0300
description:
Modules compatibility: removed unneeded NGX_HAVE_REUSEPORT checks.

Removed NGX_HAVE_REUSEPORT from the signature accordingly.

diffstat:

src/core/ngx_connection.h | 2 --
src/core/ngx_module.h | 5 -----
src/http/ngx_http_core_module.h | 2 --
src/stream/ngx_stream.h | 2 --
4 files changed, 0 insertions(+), 11 deletions(-)

diffs (56 lines):

diff -r cebf5fed00bf -r 9170240f1241 src/core/ngx_connection.h
--- a/src/core/ngx_connection.h Mon Oct 03 15:58:25 2016 +0300
+++ b/src/core/ngx_connection.h Mon Oct 03 15:58:29 2016 +0300
@@ -69,10 +69,8 @@ struct ngx_listening_s {
#if (NGX_HAVE_INET6)
unsigned ipv6only:1;
#endif
-#if (NGX_HAVE_REUSEPORT)
unsigned reuseport:1;
unsigned add_reuseport:1;
-#endif
unsigned keepalive:2;

#if (NGX_HAVE_DEFERRED_ACCEPT)
diff -r cebf5fed00bf -r 9170240f1241 src/core/ngx_module.h
--- a/src/core/ngx_module.h Mon Oct 03 15:58:25 2016 +0300
+++ b/src/core/ngx_module.h Mon Oct 03 15:58:29 2016 +0300
@@ -72,12 +72,7 @@
#endif

#define NGX_MODULE_SIGNATURE_9 "1"
-
-#if (NGX_HAVE_REUSEPORT)
#define NGX_MODULE_SIGNATURE_10 "1"
-#else
-#define NGX_MODULE_SIGNATURE_10 "0"
-#endif

#if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER)
#define NGX_MODULE_SIGNATURE_11 "1"
diff -r cebf5fed00bf -r 9170240f1241 src/http/ngx_http_core_module.h
--- a/src/http/ngx_http_core_module.h Mon Oct 03 15:58:25 2016 +0300
+++ b/src/http/ngx_http_core_module.h Mon Oct 03 15:58:29 2016 +0300
@@ -72,9 +72,7 @@ typedef struct {
#if (NGX_HAVE_INET6)
unsigned ipv6only:1;
#endif
-#if (NGX_HAVE_REUSEPORT)
unsigned reuseport:1;
-#endif
unsigned so_keepalive:2;
unsigned proxy_protocol:1;

diff -r cebf5fed00bf -r 9170240f1241 src/stream/ngx_stream.h
--- a/src/stream/ngx_stream.h Mon Oct 03 15:58:25 2016 +0300
+++ b/src/stream/ngx_stream.h Mon Oct 03 15:58:29 2016 +0300
@@ -55,9 +55,7 @@ typedef struct {
#if (NGX_HAVE_INET6)
unsigned ipv6only:1;
#endif
-#if (NGX_HAVE_REUSEPORT)
unsigned reuseport:1;
-#endif
unsigned so_keepalive:2;
unsigned proxy_protocol:1;
#if (NGX_HAVE_KEEPALIVE_TUNABLE)

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

[nginx] Modules compatibility: removed unneeded NGX_HAVE_REUSEPORT checks.

ru@nginx.com 495 October 03, 2016 09:02AM



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

Online Users

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