]> err.no Git - varnish/commitdiff
Add an XXX comment
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 13 Jul 2007 08:05:14 +0000 (08:05 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 13 Jul 2007 08:05:14 +0000 (08:05 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1688 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/rfc2616.c

index 8397dc3eacb52999d896949f5cb7d8a6a98998f6..d832b2d6340e83167d98e9fa1e9c1eb8549d755c 100644 (file)
@@ -121,6 +121,14 @@ RFC2616_Ttl(struct sess *sp, struct http *hp, struct object *obj)
                        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);