Mercurial > hg > nginx
comparison src/http/modules/ngx_http_static_module.c @ 1799:0b5b94805d26
optimization
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 27 Dec 2007 20:32:43 +0000 |
parents | 25c93614e6b9 |
children | 93a0d80fdce6 d4df1c875351 |
comparison
equal
deleted
inserted
replaced
1798:0379d1fc8701 | 1799:0b5b94805d26 |
---|---|
100 of.valid = clcf->open_file_cache_valid; | 100 of.valid = clcf->open_file_cache_valid; |
101 of.min_uses = clcf->open_file_cache_min_uses; | 101 of.min_uses = clcf->open_file_cache_min_uses; |
102 of.errors = clcf->open_file_cache_errors; | 102 of.errors = clcf->open_file_cache_errors; |
103 of.events = clcf->open_file_cache_events; | 103 of.events = clcf->open_file_cache_events; |
104 | 104 |
105 rc = ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool); | 105 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool) |
106 | 106 != NGX_OK) |
107 if (rc == NGX_ERROR) { | 107 { |
108 | |
109 switch (of.err) { | 108 switch (of.err) { |
110 | 109 |
111 case 0: | 110 case 0: |
112 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 111 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
113 | 112 |