From: David Carlier Date: Sun, 15 Mar 2026 15:56:01 +0000 (+0000) Subject: Upstream: reset early_hints_length on upstream reinit. X-Git-Tag: release-1.29.8~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=1709bffe6ebb5bfd4d71893d65920fdc4bf82f65;p=nginx.git Upstream: reset early_hints_length on upstream reinit. When a request was retried to a new upstream after receiving 103 Early Hints from the previous one, the accumulated early_hints_length was not reset, causing valid early hints from the next upstream to be incorrectly rejected as "too big". --- diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 918323d9b..b64561369 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2067,6 +2067,7 @@ ngx_http_upstream_reinit(ngx_http_request_t *r, ngx_http_upstream_t *u) return NGX_ERROR; } + u->early_hints_length = 0; u->keepalive = 0; u->upgrade = 0; u->error = 0;