comparison src/http/ngx_http_file_cache.c @ 469:2ff194b74f1e release-0.1.9

nginx-0.1.9-RELEASE import *) Bugfix: the proxied request was sent without arguments if the request contains "//", "/./", "/../" or "%XX". *) Bugfix: the large compressed responses may be transferred not completely. *) Bugfix: the files bigger than 2G was not transferred on Linux that does not support sendfile64(). *) Bugfix: while the build configuration on Linux the --with-poll_module parameter was required; the bug had appeared in 0.1.8.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 25 Nov 2004 16:17:31 +0000
parents a88a3e4e158f
children ad1e9ebf93bb
comparison
equal deleted inserted replaced
468:1a67596d0349 469:2ff194b74f1e
7 #include <ngx_config.h> 7 #include <ngx_config.h>
8 #include <ngx_core.h> 8 #include <ngx_core.h>
9 #include <ngx_http.h> 9 #include <ngx_http.h>
10 10
11 11
12 #if (HAVE_OPENSSL_MD5_H) 12 #if (NGX_HAVE_OPENSSL_MD5_H)
13 #include <openssl/md5.h> 13 #include <openssl/md5.h>
14 #else 14 #else
15 #include <md5.h> 15 #include <md5.h>
16 #endif 16 #endif
17 17
18 #if (HAVE_OPENSSL_MD5) 18 #if (NGX_OPENSSL_MD5)
19 #define MD5Init MD5_Init 19 #define MD5Init MD5_Init
20 #define MD5Update MD5_Update 20 #define MD5Update MD5_Update
21 #define MD5Final MD5_Final 21 #define MD5Final MD5_Final
22 #endif 22 #endif
23 23
24 24
25 #if 0
25 26
26 int ngx_http_cache_get_file(ngx_http_request_t *r, ngx_http_cache_ctx_t *ctx) 27 int ngx_http_cache_get_file(ngx_http_request_t *r, ngx_http_cache_ctx_t *ctx)
27 { 28 {
28 MD5_CTX md5; 29 MD5_CTX md5;
29 30
235 gc->deleted++; 236 gc->deleted++;
236 gc->freed += ngx_de_size(dir); 237 gc->freed += ngx_de_size(dir);
237 238
238 return NGX_OK; 239 return NGX_OK;
239 } 240 }
241
242 #endif