ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: pread() failed для модуля раздачи flv
  • From: Александр Кутузов <alleteam@xxxxxxxxx>
  • Date: Wed, 19 Nov 2008 15:30:33 +0530
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=D8sDjXcCXug3fgKsWEcOMblpyJK2VcRxxKKrQqZ7uR0=; b=PtzDb9lL5MzmqbAdNL9Kh/9PZveeDR3PwhtSK6JOy7IwZDP0GGO2gRZ2fhZ8NAYzYy M1c+POGMdYHs+OeEJlwmLvu/aGcWQ/Dj1e/Z7ROqsAK474aqSDNwIrJZ6GGKx5oSsRgg hU2/iX+xbK7hG9a1gAmjoDjV5rTJkmW9RfVZ4=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=KjOD8HrISPRZl1auZGz3TEeRZ/dBFaivxo0sFT4nNFa2yf7KLBQEI1dHSIKn8oLqWk 48uQ0O9hyQGncYz7A5IUph+bxY5IZCtHf6HIAbl5dOtD0pia0oP7Os7+5cnJ37PINN7z RwB2cPDQygzns6F8VmhNbImT+Q467xTe4Ij/E=
  • In-reply-to: <20081118134508.GK5269@xxxxxxxxxxxxx>
  • References: <3DC63F37-54BC-4E26-BA02-3D0D1C2C811D@xxxxxxxxx> <20081118134508.GK5269@xxxxxxxxxxxxx>

используется 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@xxxxxxxxx








 




Copyright © Lexa Software, 1996-2009.