Bug with VRT_GetHDR on vcl_fetch
jeanpralo at gmail.com
Tue Sep 6 10:30:16 CEST 2011
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 <
kristian at varnish-software.com> 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
> > the devbian varnish repository. I'm trying to follow the idea of this
> > :
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc