Fixes CacheForceCompletion directive
PR: 7383, 8067, 8090
Obtained from: Alexey Panchenko <panchenko@liwest.ru>
Submitted by: Alexey Panchenko <panchenko@liwest.ru>
Reviewed by: Chuck Murcko
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@91128
13f79535-47bb-0310-9956-
ffa450edef68
if (s > 0)
psf->cache.cache_completion = ((float)s / 100);
- psf->cache.cache_completion = 1;
+ psf->cache.cache_completion_set = 1;
return NULL;
}
ap_reset_timeout(r);
if (w <= 0) {
- if (c != NULL && c->fp != NULL) {
+ if (c != NULL) {
/* when a send failure occurs, we need to decide
* whether to continue loading and caching the
* document, or to abort the whole thing
(c->len * c->cache_completion < total_bytes_rcvd);
if (! ok) {
+ if (c->fp!=NULL) {
ap_pclosef(c->req->pool, ap_bfileno(c->fp, B_WR));
c->fp = NULL;
+ }
unlink(c->tempfile);
c = NULL;
}