[Varnish] #145: Issues whild loading VCL code on the fly

Varnish varnish-bugs at projects.linpro.no
Tue Aug 7 15:20:41 CEST 2007


#145: Issues whild loading VCL code on the fly
----------------------+-----------------------------------------------------
 Reporter:  anders    |       Owner:  phk              
     Type:  defect    |      Status:  new              
 Priority:  normal    |   Milestone:                   
Component:  varnishd  |     Version:  1.1              
 Severity:  normal    |    Keywords:  varnishd load VCL
----------------------+-----------------------------------------------------
 After loading VCL code with a couple of different config names, including
 doing that with errors in the config, it happens that you can not really
 discard a configuration which is not in use anymore.

 {{{
 Connected to localhost.
 Escape character is '^]'.
 vcl.list
 200 15
 *      38 boot

 vcl.load run1 /usr/local/etc/varnish.vcl
 106 102
 Expected action, 'if' or '}'
 (/usr/local/etc/varnish.vcl Line 54 Pos 1)
 sub vcl_miss {
 ###-----------

 vcl.list
 200 15
 *      38 boot

 vcl.load run1 /usr/local/etc/varnish.vcl
 200 0

 vcl.list
 200 30
 *      38 boot
         0 run1

 vcl.use run1
 200 0

 vcl.load run2 /usr/local/etc/varnish.vcl
 106 102
 Expected action, 'if' or '}'
 (/usr/local/etc/varnish.vcl Line 54 Pos 1)
 sub vcl_miss {
 ###-----------

 vcl.list
 200 30
        23 boot
 *      15 run1

 vcl.load run2 /usr/local/etc/varnish.vcl
 200 0

 vcl.list
 200 45
         8 boot
 *      30 run1
         0 run2

 vcl.discard run2
 200 0

 vcl.load run2 /usr/local/etc/varnish.vcl
 200 0

 vcl.use run2
 200 0

 vcl.discard run1
 200 0

 vcl.load run1 /usr/local/etc/varnish.vcl
 106 28
 Config 'run1' already loaded
 vcl.list
 200 45
         0 boot
         1 run1
 *      50 run2

 vcl.discard run1
 106 34
 No configuration named run1 known.
 }}}

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/145>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list