Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
3933:b5c169873c6b | 3934:b4b7bb829fe2 |
---|---|
2029 r->read_event_handler = ngx_http_request_empty_handler; | 2029 r->read_event_handler = ngx_http_request_empty_handler; |
2030 r->write_event_handler = ngx_http_request_empty_handler; | 2030 r->write_event_handler = ngx_http_request_empty_handler; |
2031 c->error = 1; | 2031 c->error = 1; |
2032 | 2032 |
2033 } else { | 2033 } else { |
2034 | |
2035 #if (NGX_HTTP_CACHE) | |
2036 | |
2037 if (r->cache) { | |
2038 ngx_http_file_cache_free(r->cache, u->pipe->temp_file); | |
2039 } | |
2040 | |
2041 #endif | |
2042 | |
2034 ngx_http_upstream_finalize_request(r, u, rc); | 2043 ngx_http_upstream_finalize_request(r, u, rc); |
2035 return; | 2044 return; |
2036 } | 2045 } |
2037 } | 2046 } |
2038 | 2047 |