[nginx] Modules compatibility: health check fields.

Maxim Dounin mdounin at mdounin.ru
Thu Sep 29 17:27:17 UTC 2016


details:   http://hg.nginx.org/nginx/rev/3ab8736958cb
branches:  
changeset: 6710:3ab8736958cb
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Thu Sep 29 18:06:02 2016 +0300
description:
Modules compatibility: health check fields.

diffstat:

 src/http/ngx_http_request.h |  2 ++
 src/stream/ngx_stream.h     |  4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -542,6 +542,8 @@ struct ngx_http_request_s {
     unsigned                          stat_reading:1;
     unsigned                          stat_writing:1;
 
+    unsigned                          health_check:1;
+
     /* used to parse HTTP headers */
 
     ngx_uint_t                        state;
diff --git a/src/stream/ngx_stream.h b/src/stream/ngx_stream.h
--- a/src/stream/ngx_stream.h
+++ b/src/stream/ngx_stream.h
@@ -226,8 +226,10 @@ struct ngx_stream_session_s {
     ngx_uint_t                     status;
 
 #if (NGX_STREAM_SSL)
-    ngx_uint_t                     ssl;  /* unsigned  ssl:1; */
+    unsigned                       ssl:1;
 #endif
+
+    unsigned                       health_check:1;
 };
 
 



More information about the nginx-devel mailing list