mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 04:52:25 +00:00
Upstream: even better handling of invalid headers in cache files.
When parsing of headers in a cache file fails, already parsed headers need to be cleared, and protocol state needs to be reinitialized. To do so, u->request_sent is now set to ensure ngx_http_upstream_reinit() will be called. This change complements improvements in 46ddff109e72.
This commit is contained in:
parent
53d655f894
commit
0737e6d841
1 changed files with 1 additions and 0 deletions
|
|
@ -584,6 +584,7 @@ ngx_http_upstream_init_request(ngx_http_request_t *r)
|
|||
r->cached = 0;
|
||||
u->buffer.start = NULL;
|
||||
u->cache_status = NGX_HTTP_CACHE_MISS;
|
||||
u->request_sent = 1;
|
||||
}
|
||||
|
||||
if (ngx_http_upstream_cache_background_update(r, u) != NGX_OK) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue