Commit eb7f8a7b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Truncate TTLs in the past to now.


git-svn-id: http://www.varnish-cache.org/svn/trunk@230 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2eb69675
......@@ -80,7 +80,9 @@ RFC2616_Ttl(struct http *hp, time_t t_req, time_t t_resp)
ttl = h_expires;
if (ttl == 0)
ttl = t_resp + heritage.default_ttl;
printf("TTL: %d (+%d)\n", ttl, ttl - t_resp);
printf("TTL: %d (%+d)\n", ttl, ttl - t_resp);
if (ttl < t_resp)
return (t_resp);
return (ttl);
}
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