]> git.kaiwu.me - nginx.git/commitdiff
Modules compatibility: http2.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 3 Oct 2016 12:58:22 +0000 (15:58 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 3 Oct 2016 12:58:22 +0000 (15:58 +0300)
HTTP/2-specific fields in structures are now available unconditionally.
Removed NGX_HTTP_V2 from the signature accordingly.

src/core/ngx_module.h
src/http/ngx_http.h
src/http/ngx_http_core_module.h
src/http/ngx_http_request.h

index 3ac1e437ebc9903d262f388d1adbe5d2fd318dfc..e2fbe9cfae5fd1614e9b2c40c53afe652fef21cc 100644 (file)
 #define NGX_MODULE_SIGNATURE_24  "0"
 #endif
 
-#if (NGX_HTTP_V2)
 #define NGX_MODULE_SIGNATURE_25  "1"
-#else
-#define NGX_MODULE_SIGNATURE_25  "0"
-#endif
 
 #if (NGX_HTTP_GZIP)
 #define NGX_MODULE_SIGNATURE_26  "1"
index 19cb680c86605ded9a3030db9261584b9ec2eaf1..afab4f645716be97bb4fe2f3913e26aaa2127331 100644 (file)
@@ -19,10 +19,7 @@ typedef struct ngx_http_cache_s       ngx_http_cache_t;
 typedef struct ngx_http_file_cache_s  ngx_http_file_cache_t;
 typedef struct ngx_http_log_ctx_s     ngx_http_log_ctx_t;
 typedef struct ngx_http_chunked_s     ngx_http_chunked_t;
-
-#if (NGX_HTTP_V2)
 typedef struct ngx_http_v2_stream_s   ngx_http_v2_stream_t;
-#endif
 
 typedef ngx_int_t (*ngx_http_header_handler_pt)(ngx_http_request_t *r,
     ngx_table_elt_t *h, ngx_uint_t offset);
index fb391d744de3a7dca58f4abfc3096ce24fa097c6..a8013b184bef6e6537580e715c639fb27ac8025b 100644 (file)
@@ -68,9 +68,7 @@ typedef struct {
 #if (NGX_HTTP_SSL)
     unsigned                   ssl:1;
 #endif
-#if (NGX_HTTP_V2)
     unsigned                   http2:1;
-#endif
 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY)
     unsigned                   ipv6only:1;
 #endif
@@ -237,9 +235,7 @@ struct ngx_http_addr_conf_s {
 #if (NGX_HTTP_SSL)
     unsigned                   ssl:1;
 #endif
-#if (NGX_HTTP_V2)
     unsigned                   http2:1;
-#endif
     unsigned                   proxy_protocol:1;
 };
 
index e4a1cf059c580bdd6579a0db2980c0be3eb6fd9d..ee609adbbb4394ace5e02e1d8f85a1b9ea25d1f2 100644 (file)
@@ -286,9 +286,7 @@ typedef struct {
     ngx_chain_t                      *bufs;
     ngx_buf_t                        *buf;
     off_t                             rest;
-#if (NGX_HTTP_V2)
     off_t                             received;
-#endif
     ngx_chain_t                      *free;
     ngx_chain_t                      *busy;
     ngx_http_chunked_t               *chunked;
@@ -438,9 +436,7 @@ struct ngx_http_request_s {
     ngx_uint_t                        err_status;
 
     ngx_http_connection_t            *http_connection;
-#if (NGX_HTTP_V2)
     ngx_http_v2_stream_t             *stream;
-#endif
 
     ngx_http_log_handler_pt           log_handler;