[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    r907 - trunk/varnish-cache/bin/varnishd
From:       phk () projects ! linpro ! no (phk at projects ! linpro ! no)
Date:       2006-08-23 12:10:11
Message-ID: 20060823121011.BC5C61EC999 () projects ! linpro ! no
[Download RAW message or body]

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;



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic