[PATCH] Allow returning abandon from vcl_backend_error{}
Dridi Boukelmoune
dridi at varni.sh
Mon Apr 13 12:17:15 CEST 2015
Hi,
This is kind of like how you may duplicate bereq manipulations between
vcl_miss and vcl_pass with Varnish 3 (no there's vcl_backend_fetch).
A current workaround would be to call custom vcl subs in both
vcl_synth and vcl_backend_error. Otherwise the patch looks simple
enough :)
Dridi
On Thu, Apr 9, 2015 at 10:55 PM, Federico Schwindt <fgsch at lodoss.net> wrote:
> Hi,
>
> Currently if you want to have all your error handling in a single place,
> i.e. vcl_synth{}, and you end up in vcl_backend_error{} you have to either
> return retry and then abandon in vcl_backend_fetch{} or return deliver and
> in vcl_deliver{} return synth.
>
> I can't think of any reason for not allowing this so the attached patch
> lifts this restriction.
>
> Comments? OKs?
>
> _______________________________________________
> varnish-dev mailing list
> varnish-dev at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
More information about the varnish-dev
mailing list