On Sun, Nov 1, 2015 at 12:30 PM, Geoff Simmons <ge...@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. _______________________________________________ varnish-dev mailing list varnish-dev@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev