comparison src/http/modules/ngx_http_index_module.c @ 5159:94c349e3589d stable-1.2

Merge of r5127: language in a comment. Fixed language in a comment preceding ngx_http_index_handler().
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 29 Mar 2013 17:53:47 +0000
parents 778ef9c3fd2d
children 3fb9b5eb75c0
comparison
equal deleted inserted replaced
5158:f1521859b8c2 5159:94c349e3589d
83 }; 83 };
84 84
85 85
86 /* 86 /*
87 * Try to open/test the first index file before the test of directory 87 * Try to open/test the first index file before the test of directory
88 * existence because valid requests should be much more than invalid ones. 88 * existence because valid requests should prevail over invalid ones.
89 * If the file open()/stat() would fail, then the directory stat() should 89 * If open()/stat() of a file will fail then stat() of a directory
90 * be more quickly because some data is already cached in the kernel. 90 * should be faster because kernel may have already cached some data.
91 * Besides, Win32 may return ERROR_PATH_NOT_FOUND (NGX_ENOTDIR) at once. 91 * Besides, Win32 may return ERROR_PATH_NOT_FOUND (NGX_ENOTDIR) at once.
92 * Unix has ENOTDIR error, however, it's less helpful than Win32's one: 92 * Unix has ENOTDIR error; however, it's less helpful than Win32's one:
93 * it only indicates that path contains an usual file in place of directory. 93 * it only indicates that path points to a regular file, not a directory.
94 */ 94 */
95 95
96 static ngx_int_t 96 static ngx_int_t
97 ngx_http_index_handler(ngx_http_request_t *r) 97 ngx_http_index_handler(ngx_http_request_t *r)
98 { 98 {