]> git.kaiwu.me - nginx.git/commit
Upstream: don't cache unfinished responses.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 18 Nov 2011 15:09:08 +0000 (15:09 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 18 Nov 2011 15:09:08 +0000 (15:09 +0000)
commite0c1a63028d1c1371f99b6449e4d1ba9d40873a9
tree06174bc210ad8750a92490918592b3bbd16fb3ed
parent5eef168a2222b26cdf6dfd2e7c11cb5423cebc74
Upstream: don't cache unfinished responses.

Check if received data length match Content-Length header (if present),
don't cache response if no match found.  This prevents caching of corrupted
response in case of premature connection close by upstream.
src/http/ngx_http_upstream.c