diff src/http/ngx_http_request.h @ 8706:3057bae4dba7 quic

HTTP/3: introduced ngx_http_v3_parse_t structure. The structure is used to parse an HTTP/3 request. An object of this type is added to ngx_http_request_t instead of h3_parse generic pointer. Also, the new field is located outside of the request ephemeral zone to keep it safe after request headers are parsed.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 17 Feb 2021 15:56:34 +0300
parents e1eb7f4ca9f1
children 9ec3e71f8a61
line wrap: on
line diff
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -447,6 +447,7 @@ struct ngx_http_request_s {
 
     ngx_http_connection_t            *http_connection;
     ngx_http_v2_stream_t             *stream;
+    ngx_http_v3_parse_t              *v3_parse;
 
     ngx_http_log_handler_pt           log_handler;
 
@@ -596,10 +597,6 @@ struct ngx_http_request_s {
     u_char                           *port_start;
     u_char                           *port_end;
 
-#if (NGX_HTTP_V3)
-    void                             *h3_parse;
-#endif
-
     unsigned                          http_minor:16;
     unsigned                          http_major:16;
 };