diff src/http/v3/ngx_http_v3_request.c @ 8408:5b367070cc9c quic

Fixed client buffer reallocation for HTTP/3. Preserving pointers within the client buffer is not needed for HTTP/3 because all data is either allocated from pool or static. Unlike with HTTP/1, data typically cannot be referenced directly within the client buffer. Trying to preserve NULLs or external pointers lead to broken pointers. Also, reverted changes in ngx_http_alloc_large_header_buffer() not relevant for HTTP/3 to minimize diff to mainstream.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 19 May 2020 16:20:33 +0300
parents d6feece1288a
children 908cae4f3078
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_request.c	Tue May 19 15:47:37 2020 +0300
+++ b/src/http/v3/ngx_http_v3_request.c	Tue May 19 16:20:33 2020 +0300
@@ -60,6 +60,7 @@
 
         r->h3_parse = st;
         r->parse_start = b->pos;
+        r->state = 1;
     }
 
     while (b->pos < b->last) {