diff options
author | Roman Arutyunyan <arut@nginx.com> | 2021-02-17 15:56:34 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2021-02-17 15:56:34 +0300 |
commit | ffb099bf52e70c0cbdb1ed5555645f12ec6b2322 (patch) | |
tree | b16ec2b55588baec24be0d8a2f1536fd0ed27e1b /src/http/ngx_http_request.h | |
parent | c83be09720cf8dff041db6581d9df26c88bd3463 (diff) | |
download | nginx-ffb099bf52e70c0cbdb1ed5555645f12ec6b2322.tar.gz nginx-ffb099bf52e70c0cbdb1ed5555645f12ec6b2322.zip |
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.
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r-- | src/http/ngx_http_request.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index 4121e3c3b..5231ad6f2 100644 --- 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; }; |