Mercurial > hg > nginx-quic
comparison src/http/modules/proxy/ngx_http_proxy_cache.c @ 190:02a715e85df1
nginx-0.0.1-2003-11-19-00:34:08 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 18 Nov 2003 21:34:08 +0000 |
parents | c966c09be66b |
children | dd66383796a5 |
comparison
equal
deleted
inserted
replaced
189:c966c09be66b | 190:02a715e85df1 |
---|---|
53 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 53 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
54 } | 54 } |
55 p->header_in->tag = (ngx_hunk_tag_t) &ngx_http_proxy_module; | 55 p->header_in->tag = (ngx_hunk_tag_t) &ngx_http_proxy_module; |
56 | 56 |
57 c->ctx.buf = p->header_in; | 57 c->ctx.buf = p->header_in; |
58 c->ctx.log = r->connection->log; | |
58 | 59 |
59 return ngx_http_proxy_process_cached_response(p, | 60 return ngx_http_proxy_process_cached_response(p, |
60 ngx_http_cache_get_file(r, &c->ctx)); | 61 ngx_http_cache_get_file(r, &c->ctx)); |
61 } | 62 } |
62 | 63 |
339 return; | 340 return; |
340 } | 341 } |
341 | 342 |
342 *ctx = p->cache->ctx; | 343 *ctx = p->cache->ctx; |
343 | 344 |
344 rc = ngx_http_cache_open_file(p->request, ctx, | 345 rc = ngx_http_cache_open_file(ctx, ngx_file_uniq(&p->cache->ctx.file.info)); |
345 ngx_file_uniq(&p->cache->ctx.file.info)); | |
346 | 346 |
347 if (rc == NGX_HTTP_CACHE_THE_SAME) { | 347 if (rc == NGX_HTTP_CACHE_THE_SAME) { |
348 p->try_busy_lock = 1; | 348 p->try_busy_lock = 1; |
349 p->busy_lock.time = 0; | 349 p->busy_lock.time = 0; |
350 ngx_http_proxy_cache_busy_lock(p); | 350 ngx_http_proxy_cache_busy_lock(p); |