Commit ea6181e0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

We need to check the TTL here also, if a (sequence of) slow client(s)

manages to hold the document referenced, the prefetcher may never
get lucky with it and it will linger here much past last sell date.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@527 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 5c25ff31
......@@ -101,12 +101,13 @@ HSH_Lookup(struct sess *sp)
return (NULL);
}
were_back:
/* XXX: check ttl */
/* XXX: check Vary: */
if (!o->cacheable) {
/* ignore */
} else if (o->ttl == 0) {
/* Object banned but not reaped yet */
} else if (o->ttl < sp->t_req) {
/* Object expired */
} else if (BAN_CheckObject(o, h->url)) {
o->ttl = 0;
VSL(SLT_ExpBan, 0, "%u was banned", o->xid);
......
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