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

Bug#156972: ARCH problem? more than 2 gigs also breaks



Hi!

I was going to post this info in a new bug, but then I found this one,
almost two years old, so I'd rather add this info here, as the bug is still
present in current version (I tested 1.3.29.0.2-4).

I've been testing several servers for this kind of problems on a Pentium III
machine with kernel 2.6.5 and I have found that a lot of them were not able
to go over the 2 gigas, apache is one of them.

To test this I used a real file of more than 2 gigas along with a sparse one
of more than 4 gigas and a small one:
     16 -rw-r--r--    1 root     root     5000000001 Apr 20 15:35 large
      4 -rw-r--r--    1 root     root            6 Apr 20 15:31 small
3075004 -rw-r--r--    1 root     root     3145728000 Apr 20 13:39 zeros

While it is true that apache seems to be capable of transfering files over
the 4 gigas, it is also true that it doesn't show its sizes well at least in
two cases:

This is what apache returns on its index, here you can see a bug in the file
over the 4 gigas:

[TXT] large                   20-Apr-2004 15:35   672M
[TXT] small                   20-Apr-2004 15:31     1k
[TXT] zeros                   20-Apr-2004 13:39  3000M

But then if you try to get those files, you can see that going over the two
gigs you also have a problem, look at the content-length here:

GET /zeros HTTP/1.0

HTTP/1.1 200 OK
Date: Tue, 20 Apr 2004 12:57:26 GMT
Server: Apache/1.3.29 (Debian GNU/Linux)
Last-Modified: Tue, 20 Apr 2004 11:39:19 GMT
ETag: "3fc9b-bb800000-40850be7"
Accept-Ranges: bytes
Content-Length: -1149239296
Connection: close
Content-Type: text/plain; charset=iso-8859-1

GET /large HTTP/1.0

HTTP/1.1 200 OK
Date: Tue, 20 Apr 2004 13:43:23 GMT
Server: Apache/1.3.29 (Debian GNU/Linux)
Last-Modified: Tue, 20 Apr 2004 13:35:55 GMT
ETag: "3fc9c-2a05f201-4085273b"
Accept-Ranges: bytes
Content-Length: 705032705
Connection: close
Content-Type: text/plain; charset=iso-8859-1

And one thing, don't use wget to test this kind of bugs, it also has a bug
going over the two gigs, lftp seems to work ok or try with nc or similar.

Regards...
-- 
Manty/BestiaTester -> http://manty.net



Reply to: