]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commit
Upstream: fixed reinit request with gRPC and Early Hints.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 23 Jun 2025 10:55:32 +0000 (14:55 +0400)
committerpluknet <pluknet@nginx.com>
Mon, 23 Jun 2025 16:12:21 +0000 (20:12 +0400)
commitcdf7a9c6cb7f344efc80d790fbacdc1c94ab16e3
tree3542c37c2cf3f27b3a38c636bfb3bd4564477f50
parent4eaecc5e8aa7bbaf9e58bf56560a8b1e67d0a8b7
Upstream: fixed reinit request with gRPC and Early Hints.

The gRPC module context has connection specific state, which can be lost
after request reinitialization when it comes to processing early hints.

The fix is to do only a portion of u->reinit_request() implementation
required after processing early hints, now inlined in modules.

Now NGX_HTTP_UPSTREAM_EARLY_HINTS is returned from u->process_header()
for early hints.  When reading a cached response, this code is mapped
to NGX_HTTP_UPSTREAM_INVALID_HEADER to indicate invalid header format.
src/http/modules/ngx_http_grpc_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.h