Mercurial > hg > nginx
comparison src/http/ngx_http_request_body.c @ 8520:357b8afe915e quic
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 18 Aug 2020 17:23:16 +0300 |
parents | 532fe796b0e2 |
children | eaea7dac3292 |
comparison
equal
deleted
inserted
replaced
8519:de7d6d943f68 | 8520:357b8afe915e |
---|---|
1027 | 1027 |
1028 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); | 1028 cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module); |
1029 | 1029 |
1030 r->headers_in.content_length_n = 0; | 1030 r->headers_in.content_length_n = 0; |
1031 rb->rest = cscf->large_client_header_buffers.size; | 1031 rb->rest = cscf->large_client_header_buffers.size; |
1032 | |
1033 #if (NGX_HTTP_V3) | |
1034 if (r->http_version == NGX_HTTP_VERSION_30) { | |
1035 rb->rest = 1; | |
1036 } | |
1037 #endif | |
1038 } | 1032 } |
1039 | 1033 |
1040 out = NULL; | 1034 out = NULL; |
1041 ll = &out; | 1035 ll = &out; |
1042 | 1036 |