# HG changeset patch # User Roman Arutyunyan # Date 1633521076 -10800 # Node ID a09bcc304eef60b114b0c26ba074eb1043954308 # Parent 531075860fe250ae265f5f9c91f3549177e4d12a HTTP/3: fixed request length calculation. Previously, when request was blocked, r->request_length was not updated. diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c --- 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; }