[Varnish] #1349: No exact match on varnishadm backend.set_health

Varnish varnish-bugs at varnish-cache.org
Tue Sep 24 16:53:18 CEST 2013


#1349: No exact match on varnishadm backend.set_health
--------------------------------------------+----------------------
 Reporter:  tmagnien                        |       Type:  defect
   Status:  new                             |   Priority:  normal
Milestone:                                  |  Component:  varnishd
  Version:  3.0.3                           |   Severity:  normal
 Keywords:  exact match backend.set_health  |
--------------------------------------------+----------------------
 Hi,

 When using varnishadm backend.set_health, matcher does only a partial
 match and can catch several backends beginning the same, e.g. backend5 /
 backend500.

 Faulty line is in cache_backend_cfg.c, line 387:


 {{{
 if (name_b != NULL && strncmp(b->vcl_name, name_b, name_l) != 0)
 }}}


 The match is done on length of the matcher, not on length of actual
 backend name.

 Tested on 3.0.3, did not check in trunk.

 Regards,
 Thierry

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1349>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list