[master] 1ba1185 From @slink:

Poul-Henning Kamp phk at varnish-cache.org
Thu Jan 24 13:18:04 CET 2013


commit 1ba1185618adfea71733dade045e870d5792e1e2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Jan 24 12:16:19 2013 +0000

    From @slink:
    
    	tmo can become negative if timeout_idle gets changed on the fly
    	or when the rtc jumps

diff --git a/bin/varnishd/waiter/cache_waiter_ports.c b/bin/varnishd/waiter/cache_waiter_ports.c
index aa3d766..3c07b95 100644
--- a/bin/varnishd/waiter/cache_waiter_ports.c
+++ b/bin/varnishd/waiter/cache_waiter_ports.c
@@ -222,12 +222,6 @@ vws_thread(void *priv)
 			double tmo =
 			    (sp->t_idle + cache_param->timeout_idle) - now;
 
-			/*
-			 * we should have removed all sps whose timeout
-			 * has passed
-			 */
-			assert(tmo > 0.0);
-
 			if (tmo < min_t) {
 				timeout = &min_ts;
 			} else if (tmo > max_t) {



More information about the varnish-commit mailing list