HTTP/3: fixed request length calculation.
Previously, when request was blocked, r->request_length was not updated.
This commit is contained in:
parent
513f850061
commit
334d204baf
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…
Reference in a new issue