Upstream: reset early_hints_length on upstream reinit.
Some checks are pending
buildbot / buildbot (push) Waiting to run

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".
This commit is contained in:
David Carlier 2026-03-15 15:56:01 +00:00 committed by Sergey Kandaurov
parent 067d766f21
commit 1709bffe6e

View file

@ -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;