[PATCH] Implement std.rfcdate

Federico Schwindt fgsch at lodoss.net
Thu Oct 11 11:03:32 CEST 2012


On Thu, Oct 11, 2012 at 9:56 AM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <CAJV_h0aLpdoSSRvPtQorCdqxTG0nh_hCVSeygio3jQb1wuGnug at mail.gmail.com>
> , Federico Schwindt writes:
>>On Thu, Oct 11, 2012 at 9:24 AM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
>>> In message <20121011035912.cc6531acb4464292dde9d871 at lodoss.net>, "Federico G. S
>>> chwindt" writes:
>>>
>>> I'm not sure I understand what you are trying to do here [...]
>
> This is probably my biggest hurdle right now:  What is the problem
> we are trying to solve ?

1. There is no way to get a date for `now + duration'.
This is something useful and often needed. Currently the only way is
via inline-C.
See https://www.varnish-cache.org/trac/wiki/VCLExampleSetExpires

2. now and now + duration behave differently (string vs duration)
This is for consistency.

3. now + duration returns a duration, not a time as supposed to be.
This is a bug.

f.-



More information about the varnish-dev mailing list