From: phk Date: Wed, 23 Aug 2006 12:10:11 +0000 (+0000) Subject: don't service cached objects the last second of their lifetime. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=886d5175ac8c8e465e43c4b495211b8af69d390f;p=varnish don't service cached objects the last second of their lifetime. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@907 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_hash.c b/varnish-cache/bin/varnishd/cache_hash.c index 5d6f6b4f..1822ef34 100644 --- a/varnish-cache/bin/varnishd/cache_hash.c +++ b/varnish-cache/bin/varnishd/cache_hash.c @@ -107,7 +107,7 @@ HSH_Lookup(struct sess *sp) /* ignore */ } else if (o->ttl == 0) { /* Object banned but not reaped yet */ - } else if (o->ttl < sp->t_req.tv_sec) { + } else if (o->ttl <= sp->t_req.tv_sec) { /* Object expired */ } else if (BAN_CheckObject(o, url)) { o->ttl = 0;