--------
In message 
<CABaBnj5Bs+6bLDej6=mhoxqx4eafwvz5qgb9esooehk+4jh...@mail.gmail.com>, Kacper 
Wyso
cki writes:

>Oh. I hadn't seen req.backend.name. I guess the type conversion is a
>little counter to my intuition too.

I'm not very happy about "req.backend.name", it is *very* magic and not
general to any other backend anywhere else in VCL.

The real fix would be to allow standardized (ie: builtin) methods on the
VCL_* types themselves, so that one could do things like


        $backend.ip()
        $backend.name() 

etc.

Implementing it will take some VCC hacking

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to