]> 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)
committerSergey Kandaurov <s.kandaurov@f5.com>
Wed, 13 May 2026 17:20:55 +0000 (21:20 +0400)
commitce3362cfd5c3e1434a6151cfa585b89114389da7
treedfaa844bb43629a347dad395c0eab177591baac9
parent999a13b47a67d52d8b7462215733c7240cd957c2
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