aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-05-05 14:53:36 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-05-05 14:53:36 +0300
commit38773a3c1130d34715f1cce24527a10258447354 (patch)
tree21ab82b33f79ae8a9a316eb62c7b8df418ec1877 /src/http/ngx_http_request.h
parent82f8734935ef28fbda4450fd88410b7d1f359c62 (diff)
downloadnginx-38773a3c1130d34715f1cce24527a10258447354.tar.gz
nginx-38773a3c1130d34715f1cce24527a10258447354.zip
HTTP/3: reference h3c directly from ngx_http_connection_t.
Previously, an ngx_http_v3_connection_t object was created for HTTP/3 and then assinged to c->data instead of the generic ngx_http_connection_t object. Now a direct reference is added to ngx_http_connection_t, which is less confusing and does not require a flag for http3.
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r--src/http/ngx_http_request.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index 5231ad6f2..01ae716fe 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -318,6 +318,10 @@ typedef struct {
#endif
#endif
+#if (NGX_HTTP_V3 || NGX_COMPAT)
+ ngx_http_v3_connection_t *v3_session;
+#endif
+
ngx_chain_t *busy;
ngx_int_t nbusy;
@@ -325,7 +329,6 @@ typedef struct {
unsigned ssl:1;
unsigned proxy_protocol:1;
- unsigned http3:1;
} ngx_http_connection_t;