You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/07/10 04:00:58 UTC

DO NOT REPLY [Bug 43386] Default handler produces wrong content length when replacing file

https://issues.apache.org/bugzilla/show_bug.cgi?id=43386


Robert Mela <ro...@framemedia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rob@framemedia.com




--- Comment #7 from Robert Mela <ro...@framemedia.com>  2008-07-09 19:00:57 PST ---
Our application has a file called "current.jpg" that is replaced every minute. 
    New data is written to a temp file, then rename(2) is called to rename it
to "current.jpg".

My company is experiencing exactly the race condition detailed by rahul in
comment #4.

This method of "mv" or "rename()" to update content is very common.   There is
probably widespread assumption that Apache does the right thing in this case.

Any chance of a patch in 2.2.10?

We're now faced with writing brand new files and adding file cleanup scripts,
or having our own custom modified version of Apache.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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