Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_static_handler.c @ 199:a65b630b3a66
nginx-0.0.1-2003-11-28-11:40:40 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 28 Nov 2003 08:40:40 +0000 |
parents | 0b81c7a0b133 |
children | abeaebe0a33c |
comparison
equal
deleted
inserted
replaced
198:34995c5ec6c4 | 199:a65b630b3a66 |
---|---|
95 | 95 |
96 ngx_log_debug(r->connection->log, "cache get: %x" _ cache); | 96 ngx_log_debug(r->connection->log, "cache get: %x" _ cache); |
97 | 97 |
98 if (cache | 98 if (cache |
99 && ((ngx_event_flags & NGX_HAVE_KQUEUE_EVENT) | 99 && ((ngx_event_flags & NGX_HAVE_KQUEUE_EVENT) |
100 || ccf->open_files->check_time >= ngx_time() - cache->updated)) | 100 || ccf->open_files->update >= ngx_cached_time - cache->updated)) |
101 { | 101 { |
102 cache->refs++; | 102 cache->refs++; |
103 r->file.fd = cache->fd; | 103 r->file.fd = cache->fd; |
104 r->file.name = cache->key; | 104 r->file.name = cache->key; |
105 r->content_handler = ngx_http_static_handler; | 105 r->content_handler = ngx_http_static_handler; |