[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-dev
Subject:    Re: [PATCH] Implement std.rfcdate
From:       Federico Schwindt <fgsch () lodoss ! net>
Date:       2012-10-11 10:35:15
Message-ID: CAJV_h0bOb6c1aBYbADPGGMvBVy=sJRTgyvAwdfKQf+K9oMFcUQ () mail ! gmail ! com
[Download RAW message or body]

On Thu, Oct 11, 2012 at 11:19 AM, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
> --------
> In message <76841.1349946303@critter.freebsd.dk>, Poul-Henning Kamp writes:
>
>
> Can you try this patch ?
>
> (NB: copy&pasted, you probably need to apply by hand...)
>
> (PS: and place open a ticket for this bug)
>
> diff --git a/lib/libvcl/vcc_expr.c b/lib/libvcl/vcc_expr.c
> index 72c26a9..5223392 100644
> --- a/lib/libvcl/vcc_expr.c
> +++ b/lib/libvcl/vcc_expr.c
> @@ -847,6 +847,10 @@ vcc_expr_add(struct vcc *tl, struct expr **e, enum var_type
>                 ERRCHK(tl);
>                 if (tk->tok == '-' && (*e)->fmt == TIME && e2->fmt == TIME) {
>                         /* OK */
> +               } else if (tk->tok == '+' &&
> +                   (*e)->fmt == TIME && e2->fmt == DURATION) {
> +                       f2 = TIME;
> +                       /* OK */
>                 } else if (tk->tok == '-' &&
>                     (*e)->fmt == BYTES && e2->fmt == BYTES) {
>                         /* OK */

Yes, that works.

f.-

_______________________________________________
varnish-dev mailing list
varnish-dev@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic