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

Dridi Boukelmoune dridi at varni.sh
Thu Nov 12 18:49:40 CET 2015


On Sun, Nov 1, 2015 at 12:30 PM, Geoff Simmons <geoff at uplex.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 11/01/2015 12:23 PM, Geoff Simmons wrote:
>>
>> This patch adds VCL_HasBackend().
>
> Forgot to mention about this -- it might be necessary to lock the
> vcl_mtx while traversing the vcl->backend_list, since a backend may be
> added while the query is executing.

As discussed in another thread, such interface would be subject to
TOCTOU races too.



More information about the varnish-dev mailing list