[Varnish] #1625: if(req.backend_hint == b1) compiles, but does nothing
Varnish
varnish-bugs at varnish-cache.org
Tue Nov 18 20:26:28 CET 2014
#1625: if(req.backend_hint == b1) compiles, but does nothing
-------------------------+--------------------
Reporter: huguesalary | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: build | Version: 4.0.2
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------
Comment (by fgsch):
I think the issue here is more about semantics than anything else.
req.backend_hints is type BACKEND.
You assign a backend and read the backend name back.
If you assign a backend via a director, however, you get the director's
name back. This might not be a problem except that you cannot compare it
against a director or specific backend within that director.
The former will fail while the latter will never match.
I think we need define how req.backend_hint should behave and make it
consistent across all cases.
Right now it seems to be consistent when assigning backends directly but
not via directors.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1625#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list