comparison src/core/ngx_open_file_cache.c @ 406:79c5df00501e NGINX_0_7_15

nginx 0.7.15 *) Feature: the ngx_http_random_index_module. *) Feature: the "directio" directive has been optimized for file requests starting from arbitrary position. *) Feature: the "directio" directive turns off sendfile if it is necessary. *) Feature: now nginx allows underscores in a client request header line names.
author Igor Sysoev <http://sysoev.ru>
date Mon, 08 Sep 2008 00:00:00 +0400
parents 0b6053502c55
children a8e3f1441eec
comparison
equal deleted inserted replaced
405:2993e60bc4e0 406:79c5df00501e
500 500
501 if (of->directio <= ngx_file_size(&fi)) { 501 if (of->directio <= ngx_file_size(&fi)) {
502 if (ngx_directio(fd) == -1) { 502 if (ngx_directio(fd) == -1) {
503 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, 503 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
504 ngx_directio_n " \"%s\" failed", name); 504 ngx_directio_n " \"%s\" failed", name);
505
506 } else {
507 of->is_directio = 1;
505 } 508 }
506 } 509 }
507 } 510 }
508 511
509 done: 512 done: