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

List:       varnish-dev
Subject:    Porting vmod to version 4
From:       "Chan, Rayson MT" <Rayson.MT.Chan () pccw ! com>
Date:       2015-03-09 5:43:55
Message-ID: AE29B94028F2464C820AC7BC67F1943B15FB907A () HKPCWM13 ! corphq ! hk ! pccw ! com
[Download RAW message or body]

Hi all,

I am trying to port this vmod: libvmod-parsereq (found here: \
https://github.com/xcir/libvmod-parsereq) to Varnish 4.0, which has useful features \
such as inspecting POST variables.

However, I am stumped with a couple of things in the vmod:
1) The vmod calls a function called VRT_panic() in Varnish 3.0 vrt.h but that's not \
present in Varnish 4.0. What is the proper substitute for that in V4? 2) One part of \
vmod calls a custom function named vmod_Hook_Miss_opt_post_lookup() when encountered \
a R_STP_MISS. The inside the custom function vmod_Hook...() has a couple of lines \
                like this:
        ...
        //send body
        sp->sendbody = 1;
        //modify request method
        VRT_l_bereq_request(sp,"POST",vrt_magic_string_end);
        ...
But there are no equivalent of sp->sendbody and VRT_l_bereq_request() in V4. Does \
anybody know what they meant to do?

Any kind of help is appreciated.

Regards,

Rayson Chan - HKT

_______________________________________________
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