]> git.kaiwu.me - nginx.git/commit
Cache: handling of cache files with long headers.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 12 Dec 2011 10:47:48 +0000 (10:47 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 12 Dec 2011 10:47:48 +0000 (10:47 +0000)
commit64a9f700929dbc8f0730be4f91cc3bbfde8fc3e6
tree11f67773d431f7539464fc9489102796929207cc
parentb839e6febb5c32bd3649d1e60cdc40d42efffe43
Cache: handling of cache files with long headers.

There are two possible situations which can lead to this: response was
cached with bigger proxy_buffer_size value (and nginx was restared since
then, i.e. shared memory zone content was lost), or due to the race in
the cache update code (see [1]) we've end up with fcn->body_start from
a different response stored in shared memory zone.

[1] http://mailman.nginx.org/pipermail/nginx-devel/2011-September/001287.html
src/http/ngx_http_file_cache.c