Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 3934:b4b7bb829fe2
fix "stalled cache updating" alert,
when non-cachable HEAD response did not not free an expired cache node
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 01 Jun 2011 08:02:34 +0000 |
parents | 2a70484a6580 |
children | 22f3e9197096 |
line wrap: on
line diff
--- 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 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; }