From 5fcc1c83ae1e495b70f523d86a8b8cdfbe65e2a3 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 21 Jul 2006 16:05:53 +0000 Subject: [PATCH] Log TTL calculation on the right fd git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@540 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/rfc2616.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/varnish-cache/bin/varnishd/rfc2616.c b/varnish-cache/bin/varnishd/rfc2616.c index eae184a1..fbf1cf4b 100644 --- a/varnish-cache/bin/varnishd/rfc2616.c +++ b/varnish-cache/bin/varnishd/rfc2616.c @@ -71,7 +71,7 @@ #endif static time_t -RFC2616_Ttl(struct http *hp, time_t t_req, time_t t_resp, struct object *obj) +RFC2616_Ttl(int fd, struct http *hp, time_t t_req, time_t t_resp, struct object *obj) { int retirement_age; unsigned u1, u2; @@ -117,7 +117,7 @@ RFC2616_Ttl(struct http *hp, time_t t_req, time_t t_resp, struct object *obj) ttd = t_req + retirement_age; } - VSL(SLT_Debug, 0, + VSL(SLT_Debug, fd, "TTD: max-age %u Age: %u Date: %d (%d) Expires %d (%d) our_clock %d" " -> ttd %d (%d)", u1, u2, h_date, h_date - t_req, h_expires, h_expires - t_req, t_req, ttd, ttd - t_req); @@ -153,7 +153,7 @@ RFC2616_cache_policy(struct sess *sp, struct http *hp) break; } - sp->obj->ttl = RFC2616_Ttl(hp, sp->t_req, sp->t_resp, sp->obj); + sp->obj->ttl = RFC2616_Ttl(sp->fd, hp, sp->t_req, sp->t_resp, sp->obj); sp->obj->entered = sp->t_req; if (sp->obj->ttl == 0) { sp->obj->cacheable = 0; -- 2.39.5