Welcome! Log In Create A New Profile

Advanced

Re: aio senfile

October 02, 2009 04:52AM
On Fri, Oct 02, 2009 at 11:24:29AM +0300, Полоневич Иван wrote:

> Есть проблема с aio sendfile;
> Не отрабатывает в конфиге директива и ругается на неправильное
> значение, возможно я что-то упустил в рассылке, но поиск результатов не
> выдал.
> конфиг
> sendfile on;
> aio sendfile;
> read_ahead 256k;
> tcp_nopush on;
> при перезапуске выдает следующее:
> $ sudo /etc/init.d/nginx reload
> * Checking nginx' configuration ...
> [warn]: invalid value "sendfile" in /etc/nginx/nginx.conf:40
> configuration file /etc/nginx/nginx.conf test failed
> * failed, please correct errors above
> ~ $ /usr/sbin/nginx -V
> nginx version: nginx/0.8.17
> configure arguments: --prefix=/usr --conf-path=/etc/nginx/nginx.conf
> --http-log-path=/var/log/nginx/access_log
> --error-log-path=/var/log/nginx/error_log --pid-path=/var/run/nginx.pid
> --http-client-body-temp-path=/var/tmp/nginx/client
> --http-proxy-temp-path=/var/tmp/nginx/proxy
> --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --with-md5-asm
> --with-md5=/usr/include --with-sha1-asm --with-sha1=/usr/include
> --with-http_addition_module --with-file-aio
> --without-http_fastcgi_module --with-http_ssl_module
> --with-http_stub_status_module --with-http_realip_module
> Gentoo
> $ uname -a
> Linux falcon-cl4 2.6.30.7 #1 SMP Mon Sep 21 10:10:45 EEST 2009 x86_64
> Intel(R) Xeon(R) CPU E5310 @ 1.60GHz GenuineIntel GNU/Linux
> Куда копать ?

aio sendfile работает только под FreeBSD:
http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#aio


--
Игорь Сысоев
http://sysoev.ru
Subject Author Posted

aio senfile

Joni October 02, 2009 04:36AM

Re: aio senfile

Igor Sysoev October 02, 2009 04:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 325
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready