]> err.no Git - varnish/commitdiff
don't service cached objects the last second of their lifetime.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Aug 2006 12:10:11 +0000 (12:10 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Aug 2006 12:10:11 +0000 (12:10 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@907 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_hash.c

index 5d6f6b4fec725038dedf4792bc2d03b3eba0b73e..1822ef34f632a98babdeccd676231ed45d222329 100644 (file)
@@ -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;