Following the previous change, this change adds explicit handling
of NGX_AGAIN while reading HTTP/3 request body for the sake of
correctness.
c = r->connection;
rb = r->request_body;
flush = 1;
+ n = NGX_AGAIN;
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
"http3 read client request body");
break;
}
- if (!c->read->ready || rb->rest == 0) {
+ if (n == NGX_AGAIN || !c->read->ready || rb->rest == 0) {
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
ngx_add_timer(c->read, clcf->client_body_timeout);