]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: request more client body bytes.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 18 Aug 2020 14:23:16 +0000 (17:23 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 18 Aug 2020 14:23:16 +0000 (17:23 +0300)
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.

src/http/ngx_http_request_body.c

index 204253ca24ed53d09a61c5db64ee8397aa69d5e9..d0fcb00f492f4e9c09524aa5c17fef29819cc8dd 100644 (file)
@@ -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;