Re: pread() failed для модуля раздачи flv

Александр Кутузов alleteam at gmail.com
Wed Nov 19 13:00:33 MSK 2008


используется directio
система xfs


18.11.2008, в 19:15, Igor Sysoev написал(а):

> On Tue, Nov 18, 2008 at 07:03:28PM +0530, Александр Кутузов wrote:
>
>> собственно пытаемся читать флв со смещением получается в логах вот
>> такое:
>>
>> 2008/11/18 15:18:18 [info] 24524#0: *7 client closed prematurely
>> connection while sending flv to client, client: 85.202.113.33,  
>> server:
>> rabbit.sinpark.com, request: "GET /
>> 4c8d31e51bec417fa23c9c7ac2fc10e5.flv HTTP/1.1", host:
>> "rabbit.sinpark.com", referrer: "http://sinpark.com/video53/"
>> 2008/11/18 15:18:18 [crit] 24508#0: *8 pread() failed, file "/mnt/ 
>> flv/
>> 4c8d31e51bec417fa23c9c7ac2fc10e5.flv" (22: Invalid argument) while
>> sending flv to client, client: 85.202.113.33, server:
>> rabbit.sinpark.com, request: "GET /
>> 4c8d31e51bec417fa23c9c7ac2fc10e5.flv?start=9657647 HTTP/1.1", host:
>> "rabbit.sinpark.com", referrer: "http://sinpark.com/video53/"
>> 2008/11/18 15:19:22 [crit] 24508#0: *9 pread() failed, file "/mnt/ 
>> flv/
>> 4c8d31e51bec417fa23c9c7ac2fc10e5.flv" (22: Invalid argument) while
>> sending flv to client, client: 85.202.113.33, server:
>> rabbit.sinpark.com, request: "GET /
>> 4c8d31e51bec417fa23c9c7ac2fc10e5.flv?start=16537425 HTTP/1.1", host:
>> "rabbit.sinpark.com", referrer: "http://sinpark.com/video53/"
>>
>> stat /mnt/flv/4c8d31e51bec417fa23c9c7ac2fc10e5.flv
>>  File: `/mnt/flv/4c8d31e51bec417fa23c9c7ac2fc10e5.flv'
>>  Size: 22504138        Blocks: 43960      IO Block: 4096   обычный
>> файл
>> Device: 900h/2304d      Inode: 1073742092  Links: 1
>> Access: (0664/-rw-rw-r--)  Uid: (  501/  molder)   Gid: (  501/   
>> molder)
>> Access: 2008-11-18 15:19:22.927583687 +0100
>> Modify: 2008-11-04 01:27:33.000000000 +0100
>> Change: 2008-11-16 21:40:19.558583687 +0100
>>
>>
>> первой строчкой проигрыватель закрывает скачивание текущей позиции.
>>
>> server {
>>    listen x.x.x.x:80;
>>    server_name abstractservername;
>>    root /mnt/flv;
>>
>>    location ~ \.flv$ {
>>        flv;
>>    }
>>
>>
>> nginx version: nginx/0.7.21
>> configure arguments: --with-http_secure_link_module --with-
>> http_stub_status_module --with-http_gzip_static_module --with-
>> http_flv_module --user=apache --group=apache --prefix=/usr --conf-
>> path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/ 
>> error.log --
>> http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid
>> --http-client-body-temp-path=/var/spool/nginx/client_body_temp -- 
>> http-
>> fastcgi-temp-path=/var/spool/nginx/fastcgi_temp --http-proxy-temp-
>> path=/var/spool/nginx/proxy_temp --with-debug
>>
>> Linux sparta 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:19:49 EST 2008
>> x86_64 x86_64 x86_64 GNU/Linux
>>
>> система centos
>
> Использутется ли directio ?
> Какая файловая система у /mnt ?
>
>
> -- 
> Игорь Сысоев
> http://sysoev.ru
>


Kind regards,
Alexandr Kutuzov, alleteam at gmail.com










More information about the nginx-ru mailing list