aboutsummaryrefslogtreecommitdiff
path: root/src/http/v3/ngx_http_v3_request.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-10-06 14:51:16 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-10-06 14:51:16 +0300
commit0c33e484a4333fe2a343baf3aeefae3212534db3 (patch)
tree22a303f7c623b27428e9081cad4b8e0cd3b8fe39 /src/http/v3/ngx_http_v3_request.c
parentec86cf18fa5d64aba662d99ab7d195e2e6009545 (diff)
downloadnginx-0c33e484a4333fe2a343baf3aeefae3212534db3.tar.gz
nginx-0c33e484a4333fe2a343baf3aeefae3212534db3.zip
HTTP/3: fixed request length calculation.
Previously, when request was blocked, r->request_length was not updated.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
-rw-r--r--src/http/v3/ngx_http_v3_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c
index 533a50fb8..44aef49e4 100644
--- 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 *rev)
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 *rev)
break;
}
- r->request_length += b->pos - p;
-
if (rc == NGX_AGAIN) {
continue;
}