r959 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Sep 11 12:14:29 CEST 2006


Author: phk
Date: 2006-09-11 12:14:29 +0200 (Mon, 11 Sep 2006)
New Revision: 959

Modified:
   trunk/varnish-cache/bin/varnishd/cache_expire.c
Log:
Avoid a startup-race


Modified: trunk/varnish-cache/bin/varnishd/cache_expire.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_expire.c	2006-09-11 09:35:43 UTC (rev 958)
+++ trunk/varnish-cache/bin/varnishd/cache_expire.c	2006-09-11 10:14:29 UTC (rev 959)
@@ -112,6 +112,7 @@
 
 	sp = SES_New(NULL, 0);
 	XXXAN(sp);
+	sleep(10);		/* Takes time for VCL to arrive */
 	sp->vcl = VCL_Get();
 	t = time(NULL);
 	while (1) {




More information about the varnish-commit mailing list