[Varnish] #956: Value of obj.ttl in vcl_hit
Varnish
varnish-bugs at varnish-cache.org
Mon Aug 8 01:02:55 CEST 2011
#956: Value of obj.ttl in vcl_hit
----------------------+-----------------------------------------------------
Reporter: pmialon | Owner: martin
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: 3.0.0
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
Comment(by drwilco):
There's a further problem with obj.ttl, when obj.ttl is set in vcl_hit(),
the expiry time will be TTL since the object entered cache, not TTL from
the moment it is set.
I contemplated altering obj->entered, but only very briefly.
See attachment 956.patch for a fix, and the other one to be able to run
the testcase.
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/956#comment:2>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list