VCC backend functions should need busyobject argument

Dag Haavi Finstad daghf at varnish-software.com
Mon Dec 7 16:23:15 CET 2015


On Sat, Dec 5, 2015 at 6:34 PM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
>
>
> Uhm...  both dir->resolve() and dir->gethdrs() take a BO argument:
>
>     typedef const struct director *vdi_resolve_f(const struct director *,
>         struct worker *, struct busyobj *);
>
>     typedef int vdi_gethdrs_f(const struct director *, struct worker *,
>         struct busyobj *);


Hi

The problem is rather that vmod_directors passes NULL for the bo when
invoking the vdi_healthy_f function in vdir_pick_be.

I opened a PR for a fix, see https://github.com/varnish/Varnish-Cache/pull/77

-- 
Dag Haavi Finstad
Software Developer | Varnish Software
Mobile: +47 476 64 134
We Make Websites Fly!



More information about the varnish-dev mailing list