r907 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Aug 23 14:10:11 CEST 2006


Author: phk
Date: 2006-08-23 14:10:11 +0200 (Wed, 23 Aug 2006)
New Revision: 907

Modified:
   trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
don't service cached objects the last second of their lifetime.


Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2006-08-23 11:42:16 UTC (rev 906)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2006-08-23 12:10:11 UTC (rev 907)
@@ -107,7 +107,7 @@
 			/* 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;




More information about the varnish-commit mailing list