How to compare 'bereq.backend' and 'req.backend_hint' against a director/backend in Varnish 4.1

Dridi Boukelmoune dridi at varni.sh
Fri Dec 16 15:16:14 CET 2016


> I got the impression that both "req.backend_hint" and "bereq.backend" hold
> the director (because they both output "d1") and that only "beresp.backend"
> holds the backend (because it outputs "b1").

You're right, I meant beresp.backend and confused it with bereq.backend
in my previous response. I somehow mixed up your usage of bereq.backend
and my own test case using beresp.backend...

> Therefore I assumed that a comparison against "d1.backend()" would work for
> "req.backend_hint" and "bereq.backend" but not for  "beresp.backend".

That is correct!

Cheers

PS. I had to proof-read this one twice to avoid further confusion



More information about the varnish-misc mailing list