[PATCH] add VCL_HasBackend() (Re: Preventing dup backend names with dynamic backends in VMODs)

Geoff Simmons geoff at uplex.de
Sun Nov 1 12:23:43 CET 2015


On 10/28/2015 09:17 AM, Poul-Henning Kamp wrote:
> 
>>> My current thinking is that we'll name the backend whatever the 
>>> user/vcl/vmod writer likes (ie:  Backend name), and deal with the 
>>> fall-out.
>>
>> At the very least, VMODs should have a way to discover if a backend
>> name is already in use by a VCL -- the VCL_HasBackend(vcl,name) idea.
>> Then a VMOD can choose to raise an error for duplicate names.
> 
> Agreed.

This patch adds VCL_HasBackend().


Best,
Geoff
-- 
** * * UPLEX - Nils Goroll Systemoptimierung

Scheffelstraße 32
22301 Hamburg

Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753

http://uplex.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-VCL_HasBackend.patch
Type: text/x-patch
Size: 3776 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20151101/25381e41/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20151101/25381e41/attachment.pgp>


More information about the varnish-dev mailing list