From 886d5175ac8c8e465e43c4b495211b8af69d390f Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 23 Aug 2006 12:10:11 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5