]> git.kaiwu.me - nginx.git/commit
gRPC: reset buffer chains on upstream reinit.
authorDavid Carlier <devnexen@gmail.com>
Fri, 20 Feb 2026 05:08:09 +0000 (05:08 +0000)
committerSergey Kandaurov <s.kandaurov@f5.com>
Mon, 16 Mar 2026 07:38:06 +0000 (11:38 +0400)
commita29476464cc86092135401bdcad91e4d38ac6b6d
tree6462a038d128d4947a7fe4897426e306f4b4cb06
parentbcd1a01d3bf54fb20de23356df0a23aa16487fd5
gRPC: reset buffer chains on upstream reinit.

Previously, ctx->out was not cleared in ngx_http_grpc_reinit_request(),
which could cause queued HTTP/2 control frames (SETTINGS ACK, PING ACK,
WINDOW_UPDATE) to be sent on next upstream.

Additionally, ctx->in and ctx->busy needs to be cleared to avoid similar
problems with buffered request body fixed in cd12dc4f1.
src/http/modules/ngx_http_grpc_module.c