diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-09-09 11:13:55 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-09-09 11:13:55 +0000 |
commit | 5d01ac5af3edc3b4741cb0f0925380b2f8b6625f (patch) | |
tree | 7f17649fbdad8b15619f6dda14eaf73505fc12b3 /src | |
parent | 2d06be243768ffb4de6bff98be793872ba86b870 (diff) | |
download | nginx-5d01ac5af3edc3b4741cb0f0925380b2f8b6625f.tar.gz nginx-5d01ac5af3edc3b4741cb0f0925380b2f8b6625f.zip |
Bugfix of r4086: directio was always enabled if mp4 file was sent as is.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_mp4_module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c index 92138469c..c5997c5e8 100644 --- a/src/http/modules/ngx_http_mp4_module.c +++ b/src/http/modules/ngx_http_mp4_module.c @@ -410,6 +410,7 @@ ngx_http_mp4_handler(ngx_http_request_t *r) ngx_memzero(&of, sizeof(ngx_open_file_info_t)); of.read_ahead = clcf->read_ahead; + of.directio = NGX_MAX_OFF_T_VALUE; of.valid = clcf->open_file_cache_valid; of.min_uses = clcf->open_file_cache_min_uses; of.errors = clcf->open_file_cache_errors; @@ -534,6 +535,8 @@ ngx_http_mp4_handler(ngx_http_request_t *r) ngx_directio_on_n " \"%s\" failed", path.data); } + of.is_directio = 1; + if (mp4) { mp4->file.directio = 1; } |