]> err.no Git - varnish/commit
The delivered document's age should be computed relative to the time of
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 6 Oct 2006 12:58:04 +0000 (12:58 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 6 Oct 2006 12:58:04 +0000 (12:58 +0000)
commit75a5c1c639291494af341c6e904c406cb6ca2955
tree5f0b8149e24131c5591d508d20575625024c6336
parent0b37cf49207694c3170ffa1e95498e980291951e
The delivered document's age should be computed relative to the time of
the response, not the time of the request.  If the document was not in
cache and the backend took a long time to respond, the document would
end up with a negative computed age, which when printed with %u would
appear as a large positive number (a few seconds short of either 2^32
or 2^64 depending on the size of time_t).

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1142 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_response.c