diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-08-18 17:23:16 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-08-18 17:23:16 +0300 |
commit | 7ce1a68aadec80a2c4a3b27f3fd3d7342043299b (patch) | |
tree | 514cbb485a78c0532e8cac72802627921d6886d5 /src | |
parent | 338c4015340f0eab37892c5a0449f86173b530a6 (diff) | |
download | nginx-7ce1a68aadec80a2c4a3b27f3fd3d7342043299b.tar.gz nginx-7ce1a68aadec80a2c4a3b27f3fd3d7342043299b.zip |
HTTP/3: request more client body bytes.
Previously the request body DATA frame header was read by one byte because
filters were called only when the requested number of bytes were read. Now,
after 08ff2e10ae92 (1.19.2), filters are called after each read. More bytes
can be read at once, which simplifies and optimizes the code.
This also reduces diff with the default branch.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_request_body.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index 204253ca2..d0fcb00f4 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -1029,12 +1029,6 @@ ngx_http_request_body_chunked_filter(ngx_http_request_t *r, ngx_chain_t *in) r->headers_in.content_length_n = 0; rb->rest = cscf->large_client_header_buffers.size; - -#if (NGX_HTTP_V3) - if (r->http_version == NGX_HTTP_VERSION_30) { - rb->rest = 1; - } -#endif } out = NULL; |