summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2026-03-15 15:56:01 +0000
committerSergey Kandaurov <s.kandaurov@f5.com>2026-04-06 20:59:00 +0400
commit1709bffe6ebb5bfd4d71893d65920fdc4bf82f65 (patch)
tree7aa2726862a9104186c0693d23443ee25861a1b7
parent067d766f210ee914b750d79d9284cbf8801058f3 (diff)
downloadnginx-1709bffe6ebb5bfd4d71893d65920fdc4bf82f65.tar.gz
nginx-1709bffe6ebb5bfd4d71893d65920fdc4bf82f65.tar.bz2
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".
-rw-r--r--src/http/ngx_http_upstream.c1
1 files changed, 1 insertions, 0 deletions
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;