[master] 59a0967 Slam grace and keep to zero if we fall back to a transient object.
Poul-Henning Kamp
phk at varnish-cache.org
Tue Aug 2 15:04:17 CEST 2011
commit 59a09675463c3b4aa5a72a4814f788b4d4f2d32f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Aug 2 13:03:38 2011 +0000
Slam grace and keep to zero if we fall back to a transient object.
Reminded by: Tollef
Related to: #953
diff --git a/bin/varnishd/cache_center.c b/bin/varnishd/cache_center.c
index eb0af3e..f93a61b 100644
--- a/bin/varnishd/cache_center.c
+++ b/bin/varnishd/cache_center.c
@@ -756,6 +756,8 @@ cnt_fetchbody(struct sess *sp)
&sp->wrk->exp, nhttp);
if (sp->wrk->exp.ttl > params->shortlived)
sp->wrk->exp.ttl = params->shortlived;
+ sp->wrk->exp.grace = 0.0;
+ sp->wrk->exp.keep = 0.0;
}
if (sp->obj == NULL) {
sp->err_code = 503;
More information about the varnish-commit
mailing list