Commit 7ef47c33 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Properly log TTL calculation to shmem


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@542 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4e7fecf0
......@@ -117,10 +117,12 @@ RFC2616_Ttl(int fd, struct http *hp, time_t t_req, time_t t_resp, struct object
ttd = t_req + retirement_age;
}
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);
/* calculated TTL, Our time, Date, Expires, max-age, age */
VSL(SLT_TTL, fd, "%d %d %d %d %d %d",
(int)(ttd - t_req), (int)t_req, (int)h_date, (int)h_expires,
(int)u1, (int)u2);
return (ttd);
}
......
......@@ -32,6 +32,7 @@ SLTM(Protocol)
SLTM(RxHeader)
SLTM(TxHeader)
SLTM(LostHeader)
SLTM(TTL)
SLTM(VCL_call)
SLTM(VCL_trace)
SLTM(VCL_return)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment