Re: Error handling in the constructor of a VMOD object

2024-09-17 Thread Carlos Abalde
On 9/17/24 12:55, Geoff Simmons wrote: On 9/17/24 11:54, Carlos Abalde wrote: I'm looking for advise / best-practices related to VMODs, objects and their __init() constructors. What's your suggestion to handle errors in the constructor? if (failure) { VRT_fail(ctx, "pri

Error handling in the constructor of a VMOD object

2024-09-17 Thread Carlos Abalde
Hi all, I'm looking for advise / best-practices related to VMODs, objects and their __init() constructors. Let's assume a foo VMOD and a VCL like this one: import foo; sub vcl_init {   new myfoo = foo.instance(...);   ... } What's your suggestion to handle errors in the constructor? So far

PRIV_TASK and PRIV_TOP changes in 6.1

2018-09-10 Thread Carlos Abalde
and I don't see any relevant changes: no assertions on 'priv', 'priv->priv' initialized as expected, etc. It seems I'm missing something here but I don't know what. Any clues? :) Thanks, -- Carlos Abalde

Re: vcl_init, VMODs & workspaces

2016-05-04 Thread Carlos Abalde
lementing a private VMOD's workspace in PRIV_VCL using WS_Init() in order to reuse WS_* functions and keep life simple when calling VMOD functions from vcl_init and a ctx->ws is not available. I wanted to check I wasn't missing anything here :) Thanks, -- Carlos Abalde __

vcl_init, VMODs & workspaces

2016-05-03 Thread Carlos Abalde
them when execution of vcl_init is completed? Thanks, -- Carlos Abalde ___ varnish-dev mailing list varnish-dev@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Re: Adding -b (buffer size) parameter to varnishtest

2015-09-10 Thread Carlos Abalde
> On 10 Sep 2015, at 15:00, Poul-Henning Kamp wrote: > > > In message > > , Dridi Boukelmoune writes: >> On Thu, Sep 10, 2015 at 1:26 PM, Carlos Abalde >> wrote: >>> Hi, >>> >>> When implementing in VCL complex logic (not ne

Adding -b (buffer size) parameter to varnishtest

2015-09-10 Thread Carlos Abalde
command line. [1] https://www.varnish-cache.org/trac/changeset/9511eefcdafea9a6c87f83a46d5e2b1d41c1c2c9 add-buffer-size.patch Description: Binary data Best, -- Carlos Abalde ___ varnish-dev mailing list varnish-dev@varnish-cache.org https

Re: Vmod constants

2015-06-11 Thread Carlos Abalde
s and make them readable in the code of the VMOD. My two cents :) Thanks, -- Carlos Abalde ___ varnish-dev mailing list varnish-dev@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Memory management in VMODS: sp->ws vs. sp->wrk->ws

2013-10-30 Thread Carlos Abalde
but I haven't been able to identify any rule. Is there any difference? Any hint on when to use sp->ws and when sp->wrk->sp? Thanks! -- Carlos Abalde. signature.asc Description: Message signed with OpenPGP using GPGMail ___ varnish