[3.0] c6b3fae Fix compilation error on Solaris

Tollef Fog Heen tfheen at varnish-cache.org
Tue Apr 2 13:44:32 CEST 2013


commit c6b3fae69349063338772267cfd9f631c530b9fd
Author: Geoff Simmons <geoff at uplex.de>
Date:   Tue Apr 2 13:43:36 2013 +0200

    Fix compilation error on Solaris
    
    Fixes #1167

diff --git a/bin/varnishd/cache_waiter_ports.c b/bin/varnishd/cache_waiter_ports.c
index e26a80c..e599260 100644
--- a/bin/varnishd/cache_waiter_ports.c
+++ b/bin/varnishd/cache_waiter_ports.c
@@ -225,7 +225,7 @@ vca_main(void *arg)
 
 		if (sp) {
 			double tmo =
-			    (sp->t_end + cache_param->timeout_idle) - now;
+			    (sp->t_end + params->sess_timeout) - now;
 
 			/* we should have removed all sps whose timeout has passed */
 			assert(tmo > 0.0);



More information about the varnish-commit mailing list