diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-06-01 08:02:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-06-01 08:02:34 +0000 |
commit | 1788ec0c48105b1744fb8c22adcaafb90d46eba1 (patch) | |
tree | 1c44cd9ae4d4c2d3e9c2052e195619e3b3bd97d9 /src | |
parent | e9041dd12c68b8d666b56b9ee5e7c7fb6aa075ac (diff) | |
download | nginx-1788ec0c48105b1744fb8c22adcaafb90d46eba1.tar.gz nginx-1788ec0c48105b1744fb8c22adcaafb90d46eba1.zip |
fix "stalled cache updating" alert,
when non-cachable HEAD response did not not free an expired cache node
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_upstream.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 8f1ee42c3..22187a5e6 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2031,6 +2031,15 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u) c->error = 1; } else { + +#if (NGX_HTTP_CACHE) + + if (r->cache) { + ngx_http_file_cache_free(r->cache, u->pipe->temp_file); + } + +#endif + ngx_http_upstream_finalize_request(r, u, rc); return; } |