Project

General

Profile

Actions

Bug #1097

closed

1.4.13 having trouble with range requet

Added by Anonymous about 18 years ago. Updated over 16 years ago.

Status:
Invalid
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

i run kubundy edgy with lighttpd package 1.4.13~r1370-1ubuntu1. i have a file IBM_Linux_Commercial.avi which i try to read via mplayer (which support seeking thru files via http, if the file is delivered thru apache2, the seeking works without trouble).

The file is properly delivered by lighttpd via wget


$ wget -O - -q http:_//localhost:3000/IBM_Linux_Commercial.avi |md5sum
95708cf6f01eac41ed5140151579f131  -
$ md5sum IBM_Linux_Commercial.avi
95708cf6f01eac41ed5140151579f131  IBM_Linux_Commercial.avi

h51. mplayer dumps: mplayer http: //localhost:3000/IBM_Linux_Commercial.avi
you may notice the {{{
size_confirm mismatch!: 17990 8265
Error while parsing chunk header
}}} {{{
Playing http://localhost:3000/IBM_Linux_Commercial.avi.
STREAM_HTTP(1), URL: http://localhost:3000/IBM_Linux_Commercial.avi
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]: 3000...
STREAM_ASF, URL: http://localhost:3000/IBM_Linux_Commercial.avi
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]: 3000...
size_confirm mismatch!: 17990 8265
Error while parsing chunk header
Failed, exiting.
STREAM_HTTP(2), URL: http://localhost:3000/IBM_Linux_Commercial.avi
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]: 3000...
Cache size set to 320 KBytes
}}} =
lighttpd strace: it is otherwise idle


Process 7141 attached - interrupt to quit
11:07:25.836770 time(NULL)              = 1175072845
11:07:25.836962 poll([{fd=3, events=POLLIN}], 1, 1000) = 0
11:07:26.836761 time(NULL)              = 1175072846
11:07:26.836849 poll([{fd=3, events=POLLIN}], 1, 1000) = 0
11:07:27.836802 time(NULL)              = 1175072847
11:07:27.836888 poll([{fd=3, events=POLLIN}], 1, 1000) = 0
11:07:28.842186 time(NULL)              = 1175072848
11:07:28.842284 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
11:07:28.849137 accept(3, {sa_family=AF_INET, sin_port=htons(34643), sin_addr=inet_addr("127.0.0.1")}, [16]) = 6
11:07:28.849605 brk(0x80b1000)          = 0x80b1000
11:07:28.850063 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0
11:07:28.850124 fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
11:07:28.850179 ioctl(6, FIONREAD, [0]) = 0
11:07:28.850257 read(6, 0x80a68f8, 63)  = -1 EAGAIN (Resource temporarily unavailable)
11:07:28.850337 accept(3, 0xbfcb07e8, [112]) = -1 EAGAIN (Resource temporarily unavailable)
11:07:28.850404 time(NULL)              = 1175072848
11:07:28.850470 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLIN, revents=POLLIN}], 2, 1000) = 1
11:07:28.850797 ioctl(6, FIONREAD, [145]) = 0
11:07:28.850855 read(6, "GET /IBM_Linux_Commercial.avi HTTP/1.0\r\nHost: localhost:3000\r\nUser-Agent: MPlayer/2:0.99+1.0pre8-0ubuntu8\r\nIcy-MetaData: 1\r\nConnection: close\r\n\r\n", 191) = 145
11:07:28.851105 stat64("/home/jerome/workspace/demo/public/IBM_Linux_Commercial.avi", {st_mode=S_IFREG|0644, st_size=3975246, ...}) = 0
11:07:28.851244 open("/home/jerome/workspace/demo/public/IBM_Linux_Commercial.avi", O_RDONLY|O_LARGEFILE) = 7
11:07:28.851314 close(7)                = 0
11:07:28.851416 getxattr("/home/jerome/workspace/demo/public/IBM_Linux_Commercial.avi", "user.Content-Type", 0x80a7670, 1023) = -1 EOPNOTSUPP (Operation not supported)
11:07:28.851509 getxattr("/home/jerome/workspace/demo/public/IBM_Linux_Commercial.avi", "user.Content-Type", 0x80a7670, 1023) = -1 EOPNOTSUPP (Operation not supported)
11:07:28.851637 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1082, ...}) = 0
11:07:28.851747 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1082, ...}) = 0
11:07:28.851835 setsockopt(6, SOL_TCP, TCP_CORK, [1], 4) = 0
11:07:28.851896 writev(6, [{"HTTP/1.0 200 OK\r\nConnection: close\r\nContent-Type: application/octet-stream\r\nETag: \"1086391659\"\r\nAccept-Ranges: bytes\r\nLast-Modified: Wed, 28 Mar 2007 08:38:27 GMT\r\nContent-Length: 3975246\r\nDate: Wed, 28 Mar 2007 09:07:28 GMT\r\nServer: lighttpd/1.4.13\r\n\r\n", 253}], 1) = 253
11:07:28.852019 open("/home/jerome/workspace/demo/public/IBM_Linux_Commercial.avi", O_RDONLY|O_LARGEFILE) = 7
11:07:28.852087 fcntl64(7, F_SETFD, FD_CLOEXEC) = 0
11:07:28.852137 sendfile64(6, 7, [0], 3975246) = 65283
11:07:28.852268 setsockopt(6, SOL_TCP, TCP_CORK, [0], 4) = 0
11:07:28.852321 time(NULL)              = 1175072848
11:07:28.852367 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT, revents=POLLOUT}], 2, 1000) = 1
11:07:28.852489 sendfile64(6, 7, [65283], 3909963) = 114688
11:07:28.852569 time(NULL)              = 1175072848
11:07:28.852614 poll([{fd=3, events=POLLIN, revents=POLLIN}, {fd=6, events=POLLOUT}], 2, 1000) = 1
11:07:28.887089 accept(3, {sa_family=AF_INET, sin_port=htons(34644), sin_addr=inet_addr("127.0.0.1")}, [16]) = 8
11:07:28.887240 fcntl64(8, F_SETFD, FD_CLOEXEC) = 0
11:07:28.887285 fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0
11:07:28.887331 ioctl(8, FIONREAD, [0]) = 0
11:07:28.887384 read(8, 0x80a8800, 63)  = -1 EAGAIN (Resource temporarily unavailable)
11:07:28.887449 accept(3, 0xbfcb07e8, [112]) = -1 EAGAIN (Resource temporarily unavailable)
11:07:28.887507 time(NULL)              = 1175072848
11:07:28.887552 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLIN, revents=POLLIN}], 3, 1000) = 1
11:07:28.887685 ioctl(8, FIONREAD, [286]) = 0
11:07:28.887738 read(8, "GET /IBM_Linux_Commercial.avi HTTP/1.0\r\nAccept: */*\r\nUser-Agent: NSPlayer/4.1.0.3856\r\nHost: localhost:3000\r\nPragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}\r\nPragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0\r\nConnection: Close\r\n\r\n", 319) = 286
11:07:28.888031 setsockopt(8, SOL_TCP, TCP_CORK, [1], 4) = 0
11:07:28.888096 writev(8, [{"HTTP/1.0 200 OK\r\nConnection: close\r\nContent-Type: application/octet-stream\r\nETag: \"1086391659\"\r\nAccept-Ranges: bytes\r\nLast-Modified: Wed, 28 Mar 2007 08:38:27 GMT\r\nContent-Length: 3975246\r\nDate: Wed, 28 Mar 2007 09:07:28 GMT\r\nServer: lighttpd/1.4.13\r\n\r\n", 253}], 1) = 253
11:07:28.888219 open("/home/jerome/workspace/demo/public/IBM_Linux_Commercial.avi", O_RDONLY|O_LARGEFILE) = 9
11:07:28.888298 fcntl64(9, F_SETFD, FD_CLOEXEC) = 0
11:07:28.888343 sendfile64(8, 9, [0], 3975246) = 65283
11:07:28.888450 setsockopt(8, SOL_TCP, TCP_CORK, [0], 4) = 0
11:07:28.888502 time(NULL)              = 1175072848
11:07:28.888547 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT, revents=POLLOUT}], 3, 1000) = 1
11:07:28.888642 sendfile64(8, 9, [65283], 3909963) = 114688
11:07:28.888722 time(NULL)              = 1175072848
11:07:28.888824 poll([{fd=3, events=POLLIN, revents=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}], 3, 1000) = 1
11:07:28.923873 accept(3, {sa_family=AF_INET, sin_port=htons(34645), sin_addr=inet_addr("127.0.0.1")}, [16]) = 10
11:07:28.924026 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
11:07:28.924073 fcntl64(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
11:07:28.924119 ioctl(10, FIONREAD, [0]) = 0
11:07:28.924171 read(10, 0x80a9c80, 63) = -1 EAGAIN (Resource temporarily unavailable)
11:07:28.924235 accept(3, 0xbfcb07e8, [112]) = -1 EAGAIN (Resource temporarily unavailable)
11:07:28.924293 time(NULL)              = 1175072848
11:07:28.924339 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLIN, revents=POLLIN}], 4, 1000) = 1
11:07:28.924450 ioctl(10, FIONREAD, [145]) = 0
11:07:28.924504 read(10, "GET /IBM_Linux_Commercial.avi HTTP/1.0\r\nHost: localhost:3000\r\nUser-Agent: MPlayer/2:0.99+1.0pre8-0ubuntu8\r\nIcy-MetaData: 1\r\nConnection: close\r\n\r\n", 191) = 145
11:07:28.924715 setsockopt(10, SOL_TCP, TCP_CORK, [1], 4) = 0
11:07:28.924896 writev(10, [{"HTTP/1.0 200 OK\r\nConnection: close\r\nContent-Type: application/octet-stream\r\nETag: \"1086391659\"\r\nAccept-Ranges: bytes\r\nLast-Modified: Wed, 28 Mar 2007 08:38:27 GMT\r\nContent-Length: 3975246\r\nDate: Wed, 28 Mar 2007 09:07:28 GMT\r\nServer: lighttpd/1.4.13\r\n\r\n", 253}], 1) = 253
11:07:28.925025 open("/home/jerome/workspace/demo/public/IBM_Linux_Commercial.avi", O_RDONLY|O_LARGEFILE) = 11
11:07:28.925103 fcntl64(11, F_SETFD, FD_CLOEXEC) = 0
11:07:28.925149 sendfile64(10, 11, [0], 3975246) = 65283
11:07:28.925249 setsockopt(10, SOL_TCP, TCP_CORK, [0], 4) = 0
11:07:28.925303 time(NULL)              = 1175072848
11:07:28.925348 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLOUT, revents=POLLOUT}], 4, 1000) = 1
11:07:28.925455 sendfile64(10, 11, [65283], 3909963) = 114688
11:07:28.925537 time(NULL)              = 1175072848
11:07:28.925582 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLOUT, revents=POLLOUT}], 4, 1000) = 1
11:07:28.927250 sendfile64(10, 11, [179971], 3795275) = 49152
11:07:28.927367 time(NULL)              = 1175072848
11:07:28.927415 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLOUT, revents=POLLOUT}], 4, 1000) = 1
11:07:28.927742 sendfile64(10, 11, [229123], 3746123) = 49152
11:07:28.927816 time(NULL)              = 1175072848
11:07:28.927861 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLOUT, revents=POLLOUT}], 4, 1000) = 1
11:07:28.928169 sendfile64(10, 11, [278275], 3696971) = 49152
11:07:28.928242 time(NULL)              = 1175072848
11:07:28.928287 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLOUT, revents=POLLOUT}], 4, 1000) = 1
11:07:28.928581 sendfile64(10, 11, [327427], 3647819) = 49152
11:07:28.928687 time(NULL)              = 1175072848
11:07:28.928734 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLOUT, revents=POLLOUT}], 4, 1000) = 1
11:07:28.928910 sendfile64(10, 11, [376579], 3598667) = 98304
11:07:28.928990 time(NULL)              = 1175072848
11:07:28.929035 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLOUT, revents=POLLOUT}], 4, 1000) = 1
11:07:28.929311 sendfile64(10, 11, [474883], 3500363) = 49152
11:07:28.929379 time(NULL)              = 1175072848
11:07:28.929423 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLOUT, revents=POLLOUT}], 4, 1000) = 1
11:07:28.929722 sendfile64(10, 11, [524035], 3451211) = 49152
11:07:28.929793 time(NULL)              = 1175072848
11:07:28.929837 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT}, {fd=8, events=POLLOUT}, {fd=10, events=POLLOUT, revents=POLLERR|POLLHUP}], 4, 1000) = 1
11:07:28.931753 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1082, ...}) = 0
11:07:28.931905 write(4, "127.0.0.1 localhost:3000 - [28/Mar/2007:11:07:28 +0200] \"GET /IBM_Linux_Commercial.avi HTTP/1.0\" 200 573187 \"-\" \"MPlayer/2:0.99+1.0pre8-0ubuntu8\"\n", 146) = 146
11:07:28.932020 close(11)               = 0
11:07:28.932071 close(10)               = 0
11:07:28.932134 time(NULL)              = 1175072848
11:07:28.932179 poll([{fd=3, events=POLLIN}, {fd=6, events=POLLOUT, revents=POLLERR|POLLHUP}, {fd=8, events=POLLOUT}, {fd=-1}], 4, 1000) = 1
11:07:28.936393 write(4, "127.0.0.1 localhost:3000 - [28/Mar/2007:11:07:28 +0200] \"GET /IBM_Linux_Commercial.avi HTTP/1.0\" 200 179971 \"-\" \"MPlayer/2:0.99+1.0pre8-0ubuntu8\"\n", 146) = 146
11:07:28.936535 close(7)                = 0
11:07:28.936588 close(6)                = 0
11:07:28.936657 time(NULL)              = 1175072848
11:07:28.936705 poll([{fd=3, events=POLLIN}, {fd=-1}, {fd=8, events=POLLOUT, revents=POLLERR|POLLHUP}, {fd=-1}], 4, 1000) = 1
11:07:28.937137 write(4, "127.0.0.1 localhost:3000 - [28/Mar/2007:11:07:28 +0200] \"GET /IBM_Linux_Commercial.avi HTTP/1.0\" 200 179971 \"-\" \"NSPlayer/4.1.0.3856\"\n", 134) = 134
11:07:28.937243 close(9)                = 0
11:07:28.937290 close(8)                = 0
11:07:28.937351 time(NULL)              = 1175072848
11:07:28.937395 poll([{fd=3, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=-1}], 4, 1000) = 0
11:07:29.936991 time(NULL)              = 1175072849
11:07:29.937084 poll([{fd=3, events=POLLIN}, {fd=-1}, {fd=-1}, {fd=-1}], 4, 1000) = 0
11:07:30.937025 time(NULL)              = 1175072850
11:07:30.937119 poll( <unfinished ...>
Process 7141 detached
Actions #1

Updated by jan about 18 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid

Setting the mimetype to video/x-msvideo fixed the mplayer problem.

Actions #2

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom