Commit 61cc67d4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Try to handle ttl and grace next to each other.

parent d6b33885
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment