HTTP/3: fixed request length calculation.

Previously, when request was blocked, r->request_length was not updated.
This commit is contained in:
Roman Arutyunyan 2021-10-06 14:51:16 +03:00
parent 513f850061
commit 334d204baf

View file

@ -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;
}