httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 43386] Default handler produces wrong content length when replacing file
Date Thu, 10 Jul 2008 02:00:58 GMT

Robert Mela <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #7 from Robert Mela <>  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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message