r1688 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Jul 13 10:05:14 CEST 2007


Author: phk
Date: 2007-07-13 10:05:14 +0200 (Fri, 13 Jul 2007)
New Revision: 1688

Modified:
   trunk/varnish-cache/bin/varnishd/rfc2616.c
Log:
Add an XXX comment


Modified: trunk/varnish-cache/bin/varnishd/rfc2616.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/rfc2616.c	2007-07-13 07:58:11 UTC (rev 1687)
+++ trunk/varnish-cache/bin/varnishd/rfc2616.c	2007-07-13 08:05:14 UTC (rev 1688)
@@ -121,6 +121,14 @@
 			retirement_age = u1 - u2;
 	}
 
+	/*
+	 * XXX: if the backends time is too skewed relative to our own
+	 * XXX: we should blacklist the backend, to avoid getting totally
+	 * XXX: bogus results further down.  Exactly what "too skewed" means
+	 * XXX: in this context is a good question.  It could be determined
+	 * XXX: out according to the backends headers, but a simple fixed
+	 * XXX: tolerance of a minute either way would be more predictable.
+	 */
 	h_date = 0;
 	if (http_GetHdr(hp, H_Date, &p))
 		h_date = TIM_parse(p);




More information about the varnish-commit mailing list