mod_cache_disk: Fix potential hangs on Windows when using mod_cache_disk.
PR: 55833
Submitted by: covener
Reviewed by: jim, trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1555721 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.8
+ *) mod_cache_disk: Fix potential hangs on Windows when using mod_cache_disk.
+ PR55833. [Eric Covener]
+
*) mod_ssl: Add support for OpenSSL configuration commands by introducing
the SSLOpenSSLConfCmd directive. [Stephen Henson, Kaspar Brand]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_cache_disk hangs on windows reading from closed files
- trunk patch: http://svn.apache.org/r1547845
- 2.4.x patch: trunk works
- +1 covener, jim, trawick
-
* mod_ldap: restrict a recent WIN32 change to only apply when the MS SDK is used
trunk patch: http://svn.apache.org/r1551802
2.4.x patch: trunk works
return DECLINED;
}
- apr_file_close(dobj->hdrs.fd);
/* Is this a cached HEAD request? */
if (dobj->disk_info.header_only && !r->header_only) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, r, APLOGNO(00707)
"HEAD request cached, non-HEAD requested, ignoring: %s",
dobj->hdrs.file);
+ apr_file_close(dobj->hdrs.fd);
return DECLINED;
}
"Cached URL info header '%s' didn't match body, ignoring this entry",
dobj->name);
+ apr_file_close(dobj->hdrs.fd);
return DECLINED;
}