diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-05-19 16:20:33 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-05-19 16:20:33 +0300 |
commit | 94764fda6efa48fc18b2fc0a2cd82d451e947094 (patch) | |
tree | a5c2318933b456a7ef185283e65ab8b3fbac6a39 /src/http/v3/ngx_http_v3_request.c | |
parent | d6b6b6dfc57c916dc7990504fffe71248421456d (diff) | |
download | nginx-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.c | 1 |
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) { |