mirror of
https://github.com/nginx/nginx.git
synced 2024-12-05 06:19:01 +08:00
HTTP/3: call ngx_handle_read_event() from client header handler.
This function should be called at the end of an event handler to prepare the event for the next handler call. Particularly, the "active" flag is set or cleared depending on data availability. With this call missing in one code path, read handler was not called again after handling the initial part of the client request, if the request was too big to fit into a single STREAM frame. Now ngx_handle_read_event() is called in this code path. Also, read timer is restarted.
This commit is contained in:
parent
68aa6fec77
commit
cd62534300
@ -158,11 +158,12 @@ ngx_http_v3_process_request(ngx_event_t *rev)
|
||||
|
||||
if (b->pos == b->last) {
|
||||
|
||||
if (!rev->ready) {
|
||||
break;
|
||||
}
|
||||
if (rev->ready) {
|
||||
n = c->recv(c, b->start, b->end - b->start);
|
||||
|
||||
n = c->recv(c, b->start, b->end - b->start);
|
||||
} else {
|
||||
n = NGX_AGAIN;
|
||||
}
|
||||
|
||||
if (n == NGX_AGAIN) {
|
||||
if (!rev->timer_set) {
|
||||
|
Loading…
Reference in New Issue
Block a user