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 26790] New: - error deleting old cache file
Date Mon, 09 Feb 2004 13:12:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26790>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26790

error deleting old cache file

           Summary: error deleting old cache file
           Product: Apache httpd-1.3
           Version: 1.3.29
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: seh@gedas.de


The proxy can not update the cache, if a newer file is delivered from the 
requested server. 
While trying to update the old cache file the following error occurs:
Permission denied: error deleting old cache file

The reason is an unclosed file handle in line 1768 of proxy_cache.c.

Bugfix:
Add the following lines to close the file handle before deleting it (line 1768):

	if (c->origfp != NULL) {
		ap_pclosef(c->req->pool, ap_bfileno(c->origfp, B_WR));
	}

Please confirm these changes or send us a mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message