mirror of
https://github.com/nginx/nginx.git
synced 2026-04-27 09:07:33 -04:00
Upstream: reset early_hints_length on upstream reinit.
Some checks are pending
buildbot / buildbot (push) Waiting to run
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:
parent
067d766f21
commit
1709bffe6e
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue