mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 06:37:58 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r->request_length += b->pos - p;
|
||||||
|
|
||||||
if (rc == NGX_BUSY) {
|
if (rc == NGX_BUSY) {
|
||||||
if (rev->error) {
|
if (rev->error) {
|
||||||
ngx_http_close_request(r, NGX_HTTP_CLOSE);
|
ngx_http_close_request(r, NGX_HTTP_CLOSE);
|
||||||
@ -310,8 +312,6 @@ ngx_http_v3_process_request(ngx_event_t *rev)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
r->request_length += b->pos - p;
|
|
||||||
|
|
||||||
if (rc == NGX_AGAIN) {
|
if (rc == NGX_AGAIN) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user