]> git.kaiwu.me - nginx.git/commit
Fixed client buffer reallocation for HTTP/3.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 19 May 2020 13:20:33 +0000 (16:20 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 19 May 2020 13:20:33 +0000 (16:20 +0300)
commit94764fda6efa48fc18b2fc0a2cd82d451e947094
treea5c2318933b456a7ef185283e65ab8b3fbac6a39
parentd6b6b6dfc57c916dc7990504fffe71248421456d
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.
src/http/ngx_http_request.c
src/http/v3/ngx_http_v3_request.c