[master] 61cc67d Try to handle ttl and grace next to each other.
Poul-Henning Kamp
phk at varnish-cache.org
Wed Mar 2 20:52:18 CET 2011
commit 61cc67d4a51fbc10516c94fc3f4eef6c519eb25f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Mar 2 19:40:10 2011 +0000
Try to handle ttl and grace next to each other.
diff --git a/bin/varnishd/cache_center.c b/bin/varnishd/cache_center.c
index 34be2c6..32dc4eb 100644
--- a/bin/varnishd/cache_center.c
+++ b/bin/varnishd/cache_center.c
@@ -528,6 +528,7 @@ cnt_fetch(struct sess *sp)
sp->wrk->entered = TIM_real();
sp->wrk->age = 0;
sp->wrk->exp.ttl = RFC2616_Ttl(sp);
+ sp->wrk->exp.grace = NAN;
/*
* Initial cacheability determination per [RFC2616, 13.4]
@@ -552,7 +553,6 @@ cnt_fetch(struct sess *sp)
sp->wrk->exp.ttl = -1.;
sp->wrk->do_esi = 0;
- sp->wrk->exp.grace = NAN;
sp->wrk->body_status = RFC2616_Body(sp);
More information about the varnish-commit
mailing list