Ok sure ! Thanks for your help should have search more on the internet. Found few doc about the embedded c thought.
Wouldn't it be better just checking the lenght first and returns a null pointer instead of crashing the process ? On Tue, Sep 6, 2011 at 10:13 AM, Kristian Lyngstol < [email protected]> wrote: > On Mon, Sep 05, 2011 at 10:05:49PM +0200, Jean Praloran wrote: > > I'm currently using varnish 3.0.0 on debian Squeeze 64bits, installed > from > > the devbian varnish repository. I'm trying to follow the idea of this > script > > : > https://www.varnish-cache.org/trac/wiki/VCLExampleExtendingCacheControl > > > > I can't manage to make it work since varnish child crashes : > > [...] > > > Condition(l == strlen(hdr + 1)) not true.#012thread = > > > > while using this C embedded : > > > > ttl = VRT_GetHdr(sp, HDR_OBJ, "\016Varnish-Control:"); > > [...] > > \016 is octal. Your length thus ends up being incorrect. I suggest \020. > > Also, you should use either a bug report or the -misc or -dev list. The > -bug list is mainly intended for automatic mails from trac. > > - Kristian > -- Praloran Jean
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
