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
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
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
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
__
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
> 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
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
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
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