Mercurial > hg > nginx-quic
changeset 8642:a09bcc304eef quic
HTTP/3: fixed request length calculation.
Previously, when request was blocked, r->request_length was not updated.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 06 Oct 2021 14:51:16 +0300 |
parents | 531075860fe2 |
children | 72b304f6207c |
files | src/http/v3/ngx_http_v3_request.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -297,6 +297,8 @@ ngx_http_v3_process_request(ngx_event_t break; } + r->request_length += b->pos - p; + if (rc == NGX_BUSY) { if (rev->error) { ngx_http_close_request(r, NGX_HTTP_CLOSE); @@ -310,8 +312,6 @@ ngx_http_v3_process_request(ngx_event_t break; } - r->request_length += b->pos - p; - if (rc == NGX_AGAIN) { continue; }