mirror of
https://github.com/nginx/nginx.git
synced 2025-01-21 11:42:59 +08: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
@ -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…
Reference in New Issue
Block a user