mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
HTTP/3: fixed request length calculation.
Previously, when request was blocked, r->request_length was not updated.
This commit is contained in:
parent
ec86cf18fa
commit
0c33e484a4
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue