From: Roman Arutyunyan Date: Tue, 27 Oct 2026 11:02:12 +0000 (+0400) Subject: HTTP/3: explicit handling of NGX_AGAIN X-Git-Tag: release-1.31.9~12 X-Git-Url: https://git.kaiwu.me/http/%7B@url%7D?a=commitdiff_plain;h=c51ffa2d1a6b9f16b2a384fd2e23157e80621ad7;p=nginx.git HTTP/3: explicit handling of NGX_AGAIN Following the previous change, this change adds explicit handling of NGX_AGAIN while reading HTTP/3 request body for the sake of correctness. --- diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c index 6b487289a..8cef80b42 100644 --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -1391,6 +1391,7 @@ ngx_http_v3_do_read_client_request_body(ngx_http_request_t *r) 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"); @@ -1514,7 +1515,7 @@ ngx_http_v3_do_read_client_request_body(ngx_http_request_t *r) 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);