From b96fb896d605c47f3f3b8591c87f36b97cdc2db9 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 13 Jul 2007 08:05:14 +0000 Subject: [PATCH] Add an XXX comment git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1688 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/rfc2616.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/varnish-cache/bin/varnishd/rfc2616.c b/varnish-cache/bin/varnishd/rfc2616.c index 8397dc3e..d832b2d6 100644 --- a/varnish-cache/bin/varnishd/rfc2616.c +++ b/varnish-cache/bin/varnishd/rfc2616.c @@ -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); -- 2.39.5