diff options
author | Roman Arutyunyan <arut@nginx.com> | 2021-10-06 14:51:16 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2021-10-06 14:51:16 +0300 |
commit | 0c33e484a4333fe2a343baf3aeefae3212534db3 (patch) | |
tree | 22a303f7c623b27428e9081cad4b8e0cd3b8fe39 /src/http/v3/ngx_http_v3_request.c | |
parent | ec86cf18fa5d64aba662d99ab7d195e2e6009545 (diff) | |
download | nginx-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.c | 4 |
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; } |