varnish-cache
varnish-cache copied to clipboard
Handle director loop
This ticket is to take a related, but different issue out of #3895
We do not currently handle director loops, which can cause an infinite recursion on resolution, inevitably leading to a stack overflow.
Two options are on the table right now
-
when adding a
srcbackend to adst, asksrcvia a new callback ifdstis reachable. The callback would iterate over all backends. If any matchesdst, that would fail the add operation. Otherwise the callback would be called recursively. -
Limit the number of layers which director resolution can pass through.