On Fri, Aug 21, 2015 at 7:12 PM, Dridi Boukelmoune <[email protected]> wrote: > So basically I need to move the last WARM/USE check inside the > update_backends loop, which is OK for a DNS director, once the VCL > becomes WARM again it does a lookup straight away. I'm not sure that's > enough to prevent the race, I need to take a closer look at the locks > involved in both process (adding backends and cooling the VCL).
After a quick glance today, I'm pretty sure there's an inherent race when you call VRT_new_backend from outside the CLI thread. It's not possible to lock the VCL since the structure is opaque and it would regardless conflict with the underlying call to VCL_AddBackend -- locking the VCL too. _______________________________________________ varnish-dev mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
