aboutsummaryrefslogtreecommitdiff
path: root/src/http/v3/ngx_http_v3_request.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-05-19 16:20:33 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-05-19 16:20:33 +0300
commit94764fda6efa48fc18b2fc0a2cd82d451e947094 (patch)
treea5c2318933b456a7ef185283e65ab8b3fbac6a39 /src/http/v3/ngx_http_v3_request.c
parentd6b6b6dfc57c916dc7990504fffe71248421456d (diff)
downloadnginx-94764fda6efa48fc18b2fc0a2cd82d451e947094.tar.gz
nginx-94764fda6efa48fc18b2fc0a2cd82d451e947094.zip
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.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
-rw-r--r--src/http/v3/ngx_http_v3_request.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c
index 432bc8711..7fb297728 100644
--- a/src/http/v3/ngx_http_v3_request.c
+++ b/src/http/v3/ngx_http_v3_request.c
@@ -60,6 +60,7 @@ ngx_http_v3_parse_request(ngx_http_request_t *r, ngx_buf_t *b)
r->h3_parse = st;
r->parse_start = b->pos;
+ r->state = 1;
}
while (b->pos < b->last) {