Bug with VRT_GetHDR on vcl_fetch
Jean Praloran
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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110906/e5c26da1/attachment-0003.html>
More information about the varnish-misc
mailing list