google-code-export / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
0 stars 0 forks source link

large files fail to download on LUSCA_HEAD-r14756 #123

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by unsecret...@gmail.com on 16 Sep 2010 at 1:44

GoogleCodeExporter commented 9 years ago
sorry 

2. Try to download via cache . should be 

2. Try to download via cache (in reverse proxy setup) 

Original comment by unsecret...@gmail.com on 16 Sep 2010 at 1:45

GoogleCodeExporter commented 9 years ago
Add --with-large-files --enable-large-cache-files to ./configure ?

Original comment by adrian.c...@gmail.com on 19 Oct 2010 at 2:40

GoogleCodeExporter commented 9 years ago
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!

Original comment by adrian.c...@gmail.com on 19 Oct 2010 at 3:29

GoogleCodeExporter commented 9 years ago
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'

Original comment by hends...@gmail.com on 22 Oct 2010 at 1:35

GoogleCodeExporter commented 9 years ago
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!

Original comment by adrian.c...@gmail.com on 22 Oct 2010 at 4:09

GoogleCodeExporter commented 9 years ago
Hi,

Can you give me the best configuration of lusca?

because I really liked this lusca

thank's

Original comment by billy.so...@gmail.com on 1 Nov 2010 at 2:39

GoogleCodeExporter commented 9 years ago
hi adrian, any update about this issue ? 

Original comment by dup...@gmail.com on 22 Nov 2010 at 5:08

GoogleCodeExporter commented 9 years ago
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.

Original comment by nuclear...@gmail.com on 12 Feb 2011 at 12:07

Attachments:

GoogleCodeExporter commented 9 years ago
hi, im newbie here, can i get step by step for this problem?.. i have same 
problem T_T Please..

Original comment by rusakpar...@gmail.com on 25 Jul 2013 at 9:59