httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Poeml <>
Subject [PATCH] 1.3: fix Content-Length in 416 response for files >2GB
Date Thu, 28 Feb 2002 18:35:18 GMT

the attached patch for 1.3 fixes the Content-Length header in the 416
"range not satisfiable" response, that shows an overflow with files
larger than 2 GB. 

Note that while this fix "makes it work", there are likely other places
where the incorrect number still shows up, like in the log files.

 - clength should match the off_t type of st_size, the file size as
   returned with stat(2).
 - Just to be sure, it is casted to AP_LONGEST_LONG before giving it out. 


VFS: Busy inodes after unmount. Self-destruct in 5 seconds.  Have a nice day...

View raw message