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
12936 recvfrom(25, "GET /4c8d31e51bec417fa23c9c7ac2f"..., 8192, 0,
NULL, NULL) = 263
12936 open("/mnt/flv/4c8d31e51bec417fa23c9c7ac2fc10e5.flv", O_RDONLY)
= 27
12936 fstat(27, {st_mode=S_IFREG|0664, st_size=22504138, ...}) = 0
12936 fcntl(27, F_GETFL) = 0x8000 (flags O_RDONLY|
O_LARGEFILE)
12936 fcntl(27, F_SETFL, O_RDONLY|O_DIRECT|O_LARGEFILE) = 0
12936 fcntl(27, F_GETFL) = 0xc000 (flags O_RDONLY|
O_DIRECT|O_LARGEFILE)
12936 fcntl(27, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
12936 pread(27, "\t\0\27\250\2UX\0\0\0\0\27\1\0\0\0\0\0\27\237e
\210\200\2\200\0\326-\21\313\374/"..., 283, 9986277) = 283
12936 fcntl(27, F_GETFL) = 0x8000 (flags O_RDONLY|
O_LARGEFILE)
12936 fcntl(27, F_SETFL, O_RDONLY|O_DIRECT|O_LARGEFILE) = 0
12936 pread(27, 0x6146c00, 32768, 9986560) = -1 EINVAL (Invalid
argument)
12936 write(3, "2008/11/19 12:37:39 [crit] 12936"..., 312) = 312
12936 write(4, "61.17.80.7 - - [19/Nov/2008:12:3"..., 135) = 135
12936 close(27) = 0
19.11.2008, в 15:41, Igor Sysoev написал(а):
On Wed, Nov 19, 2008 at 03:30:33PM +0530, Александр Кутузов wrote:
используется directio
система xfs
А можно сделать truss/strace такого запроса ?
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
--
Игорь Сысоев
http://sysoev.ru
Kind regards,
Alexandr Kutuzov, alleteam@xxxxxxxxx
|