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

            Bug ID: 55833
           Summary: mod_disk_cache reads from closed files
           Product: Apache httpd-2
           Version: 2.4.6
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_cache_disk / mod_disk_cache
          Assignee: [email protected]
          Reporter: [email protected]

mod_disk_cache reads and closes hdrs.fd in recall_headers() but clearly closes
hdrs.fd in open_entity (the immediately preceding callback).

On unix, the read from the closed file seems to be tolerated because they are
open with buffering, but I think this is not intended.

IIUC, hdrs.fd should be left open from branches that return OK, and closed on
the others.  Or the relatively short data should be buffered explicitly
somewhere in memory / mod_disk_cache.

-- 
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