Comment 9 for bug 412413

Revision history for this message
psl (slansky) wrote :

I replicate the issue at my test server. I have a huge test file with random data at my local WWW server and I try to get test file (filesize 2202009600) with zsync running at 32-bit Ubuntu system. From http traffic, it looks that zsync fails to request more than 2147483647 bytes from the server. Is the bug in embedded www client in zsync? I think that 64-bit system will request wider range (Range: bytes=0-2202009599). Is this hint useful to fix this bug in zsync?

GET /zsync/random.iso HTTP/1.1

User-Agent: zsync/0.5

Host: server

Referer: http://server/zsync/random.iso.2k.zsync

Range: bytes=0-2147483647

Connection: close

HTTP/1.1 206 Partial Content

Date: Wed, 28 Oct 2009 02:11:50 GMT

Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch

Last-Modified: Fri, 14 Aug 2009 23:04:00 GMT

ETag: "ba37c204-83400000-47122114e1800"

Accept-Ranges: bytes

Content-Length: 2147483648

Content-Range: bytes 0-2147483647/2202009600

Connection: close

Content-Type: application/x-iso9660-image

..,C.0Li.S*..c...H..RyW.....'......3.........#.=<........M...Wf....O...[.-..3y..6.Y...I..2:..dk. f
..<.l.o.i...).J..+.y%....xt.nY.^...\w..Kw ...S...T..>....xY.Y|b.5..N....LQ..u.].g....>...Q.W.......
t...k.....>............$j...y'........m.y..x...gb...=$jv......H.......Q..{....I..Ij.fG...?.u....W_b......k..z.z...._..OX........-tl"..q"qGb<8.~%.S....l..~...r....Z........R..%.cV....}~.J.L....Z.u.$9..kSM..n..ELI..)~..BH...Ei........>...J..g=z.....{...X...
.......

zsync client exits after downloading 2147483647 bytes from www server, it doesn't try again and again. End user has to download the rest of file (or the whole file) in other way. :-(