]> git.kaiwu.me - nginx.git/commit
Proxy: fix keepalive for HTTP/2 with explicit or no body
authorRoman Arutyunyan <arut@nginx.com>
Tue, 5 May 2026 11:22:05 +0000 (15:22 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Thu, 7 May 2026 09:18:39 +0000 (13:18 +0400)
commit1a2adac356e57893fad82f0637fb12b27d581242
tree8556a20c7d8bdecab306fbd4e0df41757c2d845e
parentf0a084645b8fede56ee08f2cc557c2475eb2a28d
Proxy: fix keepalive for HTTP/2 with explicit or no body

Previously, when an HTTP/2 request had no body or an explicit body
was set by proxy_set_body, the request consisted of only one buffer,
which had no b->last_buf flag set.  This prevented ctx->output_closed
from being set after processing this buffer.  Consequently,
u->keepalive might not be set to store the connection in the
keepalive cache.
src/http/modules/ngx_http_proxy_v2_module.c