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

           Summary: GET request has race condition w.r.t. replacement of
                    file being served
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2009-08-13 05:23:12 PDT ---
When a GET request is received by Apache, it first opens the file to determine
the length, then closes it, then reopens it to serve the file.

An interesting use case is to replace a file (using an atomic rename) and have
Apache give consistent results: always return either the old file or the new
file.

However, the current implementation will give inconsistent results when the
length of the file changes between the first and second time Apache opens the
files.

If the new file is longer, Apache returns the content of the new file truncated
to the length of the first file. If the new file is shorter, Apache returns an
error response.

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to