New issue 123 by unsecretarygeneral: large files fail to download on
LUSCA_HEAD-r14756
http://code.google.com/p/lusca-cache/issues/detail?id=123
What steps will reproduce the problem?
1. Generate a file larger than 4gb
2. Try to download via cache .
What is the expected output? What do you see instead?
Expect file to download
see instead in browser :
While trying to process the request:
GET /cpmove-xxxxxxxxxxx.tar.gz HTTP/1.1
Host: xxxxxxxxxxxxx.xxxxxxx
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9)
Gecko/20100825 Ubuntu/9.10 (karmic) Firefox/3.6.9
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en,en-us;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
The following error was encountered:
Invalid Response
The HTTP Response message received from the contacted server could not be
understood or was otherwise malformed. Please contact the site operator.
Your cache administrator may be able to provide you with more details about
the exact nature of the problem if needed.
In the squid cache log I see :
2010/09/16 08:35:10| WARNING: Unparseable content-length '4790023270'
What version of the product are you using? On what operating system?
LUSCA_HEAD-r14756
Centos 5.5
sorry
2. Try to download via cache . should be
2. Try to download via cache (in reverse proxy setup)
Add --with-large-files --enable-large-cache-files to ./configure ?
Comment #3 on issue 123 by adrian.chadd: large files fail to download on
LUSCA_HEAD-r14756
http://code.google.com/p/lusca-cache/issues/detail?id=123
Ah! strtol() on my ibook is actually limited to 2^^31-1 as LONG_MAX. This
is likely why it isn't accepting > 2gbyte files.
Let me add some test cases and then start investigating it further.
Thanks!
report the same problem here when try to download large file.
LUSCA_HEAD-r14809 @32bit
cache.log :
2010/10/22 08:01:46| ctx: enter level
0: 'http://www.gameqq.net/component/jdownloads/?task=finish&cid=84&catid=46&m=0'
2010/10/22 08:01:46| WARNING: Unparseable content-length '3132539748'
Hi,
I haven't fixed this problem yet; I've just found where it is. I'll post an
update when I've committed something that fixes it.
Thanks!
Hi,
Can you give me the best configuration of lusca?
because I really liked this lusca
thank's
hi adrian, any update about this issue ?
Here is my proposal to fix the problem.
Also it works more correct on 64bit/32bit platforms, IMHO strtol definition
is not very correct in this case, because long type is different on each of
them.
Attachments:
longfiles.patch 1.6 KB