Bug 36417 - Content-Length header is not sent for big files
Summary: Content-Length header is not sent for big files
Status: RESOLVED INVALID
Alias: None
Product: Apache httpd-1.3
Classification: Unclassified
Component: core (show other bugs)
Version: HEAD
Hardware: Other Linux
: P2 normal with 3 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 13:51 UTC by Anatoly Pugachev
Modified: 2005-08-30 05:57 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Pugachev 2005-08-30 13:51:09 UTC
hi.
apache version 1.3.33.
a simple test, create big file:
dd if=/dev/zero of=big_file_3gb_test.bin bs=1024 count=$[1024*3090]
for a small file:
oraserv:/srv/www/tomcat5/base/webapps # HEAD http://localhost/tomcat-power.gif
200 OK
Connection: close
Date: Tue, 30 Aug 2005 11:43:14 GMT
ETag: W/"2324-1103319358000"
Server: Apache/1.3.33 (Linux/SuSE) mod_ssl/2.8.22 OpenSSL/0.9.7d PHP/5.0.4 
mod_jk/1.2.10
Content-Length: 2324
Content-Type: image/gif
Last-Modified: Fri, 17 Dec 2004 21:35:58 GMT
Client-Date: Tue, 30 Aug 2005 11:43:14 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1

next,
oraserv:/srv/www/tomcat5/base/webapps # HEAD http://localhost/big_file_3gb_test.
txt
200 OK
Connection: close
Date: Tue, 30 Aug 2005 11:43:06 GMT
ETag: W/"3240099840-1125400325000"
Server: Apache/1.3.33 (Linux/SuSE) mod_ssl/2.8.22 OpenSSL/0.9.7d PHP/5.0.4 
mod_jk/1.2.10
Content-Type: text/plain
Last-Modified: Tue, 30 Aug 2005 11:12:05 GMT
Client-Date: Tue, 30 Aug 2005 11:43:06 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1

no Content-Length is in returned headers for 3Gb size file. 
If i use GET request, it's same, for small file Content-Length is returned and 
for big file is not.

Content-Length header is very important, since it possible to resume downloads 
based on this.
Any comments on this? Thanks.
Comment 1 Joe Orton 2005-08-30 13:57:48 UTC
Unfortunately, releases before the forthcoming httpd 2.2 cannot handle >2Gb
files on 32-bit Unixes.