]> git.kaiwu.me - nginx.git/commit
Upstream: even better handling of invalid headers in cache files.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 9 Oct 2017 12:59:10 +0000 (15:59 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 9 Oct 2017 12:59:10 +0000 (15:59 +0300)
commit0737e6d841d87e734dfb980a59094c26621bb80d
tree334256d48162362ba558e90d0ad9440b04baf775
parent53d655f89407af017cd193fd4d8d82118c9c2c80
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.
src/http/ngx_http_upstream.c