httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43386] Default handler produces wrong content length when replacing file
Date Thu, 10 Jul 2008 02:00:58 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43386


Robert Mela <rob@framemedia.com> changed:

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




--- Comment #7 from Robert Mela <rob@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


Mime
View raw message