aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-09-05 14:48:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-09-05 14:48:47 +0000
commit8633e1fa0695ba988a9250c9c4af7ad3d19ae1f4 (patch)
tree2bebe79cee832fc58d309a4d7f591138b03d62a4 /src/http/modules/ngx_http_static_module.c
parent98007c1761efa283dab39b6ea7b9f303d343a459 (diff)
downloadnginx-8633e1fa0695ba988a9250c9c4af7ad3d19ae1f4.tar.gz
nginx-8633e1fa0695ba988a9250c9c4af7ad3d19ae1f4.zip
*) handle unaligned file part for directio
*) disable sendfile in directio mode
Diffstat (limited to 'src/http/modules/ngx_http_static_module.c')
-rw-r--r--src/http/modules/ngx_http_static_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c
index 7c2768d81..9ff1f817f 100644
--- a/src/http/modules/ngx_http_static_module.c
+++ b/src/http/modules/ngx_http_static_module.c
@@ -251,6 +251,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
b->file->fd = of.fd;
b->file->name = path;
b->file->log = log;
+ b->file->directio = of.is_directio;
out.buf = b;
out.next = NULL;