]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Fix race conditions in mod_disk_cache by properly using the tempfile rather
authorJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 22 Sep 2004 22:28:54 +0000 (22:28 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 22 Sep 2004 22:28:54 +0000 (22:28 +0000)
commitfb8f33fc997432c3851848a2b65353634b7b2923
tree4001ef50b68312fe52666feaeeac12e9118f1ad3
parent3d6899d8e3a424efebe951edb4a46a4d99586dce
Fix race conditions in mod_disk_cache by properly using the tempfile rather
than the data file.  (We rename the tempfile when we're completed with the data
file which is an atomic operation.)

Part of the code assumed that it was using a temporary file; other parts
wrote directly to the body file - which was incorrect.  So, clean up the
whole mess to be consistent and more correct.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105261 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/experimental/mod_disk_cache.c