[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache returns negative Content-Length for a 2G file



On Wed, Nov 05, 2003 at 12:01:35PM +0100, Fabio Massimo Di Nitto wrote:
> 
> Hi Isaac,
> 	from some recent tests apache works fine with files < 4GB.
> 
> you can check here:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=156972
> 
> perhaps you can provide some more information such as version that you are
> using and so on...
> 
Here it is:

-- System Information:
Debian Release: testing/unstable
Architecture: i686
Kernel: 2.4.22

Versions of packages apache(1.3.28.0.1-1) depends on:
ii  libc6                      2.3.2.ds1-9
ii  libdb4.1                   4.1.25-10
ii  libexpat1                  1.95.6-6
ii  mime-support               3.23-1
ii  apache-common              1.3.28.0.1-1
ii  libmagic1                  4.06-1
ii  perl                       5.8.1-4
ii  dpkg                       1.10.18
ii  debconf                    1.3.20

And, i've reproduced the problem under various kernels, including stock
2.4.22, 2.4.22aa1, 2.6.0-test7, and some redhat kernels. Also, apache
didn't spit anything unusual in his logs during the tests.



Maybe i'd better do some strace, when i get some spare time.


-Isaac

> Fabio
> 
> On Wed, 5 Nov 2003, Isaac Claymore wrote:
> 
> > Hi folks, here is what I met today:
> >
> > 1. Under apache doc root:
> > dd if=/dev/zero of=foo bs=1M count=2048
> >
> > 2. And:
> >
> > clay sandbox:~ [1053:1]% telnet 127.0.0.1 80
> > Trying 127.0.0.1...
> > Connected to 127.0.0.1.
> > Escape character is '^]'.
> > HEAD /foo HTTP/1.0
> >
> > HTTP/1.1 200 OK
> > Date: Wed, 05 Nov 2003 09:45:43 GMT
> > Server: Apache/1.3.28 (Debian GNU/Linux)
> > Last-Modified: Wed, 05 Nov 2003 09:37:48 GMT
> > ETag: "793-80000000-3fa8c4ec"
> > Accept-Ranges: bytes
> > Content-Length: -2147483648
> > Connection: close
> > Content-Type: text/plain; charset=iso-8859-1
> >
> > Connection closed by foreign host.
> >
> >
> > The negative 'Content-Length: -2147483648' is not right, which broke my
> > wget.
> >
> > Any hint folks?
> >
> >
> > -Isaac
> >
> > PS: plz kindly CC me, since I'm not on this list.
> >
> >
> 
> -- 
> Our mission: make IPv6 the default IP protocol
> "We are on a mission from God" - Elwood Blues
> 
> http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp00004.html
> 

-- 

Isaac Claymore             |   clay@linux.net
Exavio Inc.                |   Home: 86-10-51736063
Beijing, China             |   Mobile: 86-13911256050
http://clay.objectis.net/  |   Office: 86-10-62788188-1039

Attachment: signature.asc
Description: Digital signature


Reply to: