Mailing List Archive

[Bug 54962] Apache will set incorrect Content-Length header and may serve partial files
https://bz.apache.org/bugzilla/show_bug.cgi?id=54962

--- Comment #7 from Trey Wayne <coolmathgamesx@gmail.com> ---
(In reply to Ståle Kristoffersen from comment #1)
> Created attachment 37131 [details]
> small program to provoke the error
> https://slopegame3d.com
> This program, compiled with gcc -o loop test.c will generate random length
> files.
> The file "/usr/local/apache2/htdocs/test.txt" will be swapped out
> atomically, and will always be consistent on disk with the end of the file
> be the line "End of file!\n".
>
> When fetching this through the latest Apache (compiled from
> httpd-2.4.41.tar.gz, apr-1.7.0.tar.gz and apr-util-1.6.1.tar.gz) it
> sometimes works as expected, sometimes I get a partial file (but the last
> line is then always "Lorem ipsum d", which is the same length as "End of
> line!\n").

+1

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org