[Varnish] #1216: Bug:'error': not a valid action in method 'vcl_deliver'.

Varnish varnish-bugs at varnish-cache.org
Mon Oct 29 09:43:41 CET 2012


#1216: Bug:'error': not a valid action in method 'vcl_deliver'.
------------------------+--------------------
 Reporter:  z329224946  |       Owner:  daghf
     Type:  defect      |      Status:  new
 Priority:  highest     |   Milestone:
Component:  varnishd    |     Version:  3.0.3
 Severity:  critical    |  Resolution:
 Keywords:              |
------------------------+--------------------

Comment (by daghf):

 This is a documentation issue. Thanks to Federico G. Schwindt for
 providing a patch.

 That said - do you have a specific use case for a problem that cannot be
 solved without doing error from vcl_deliver?

 The reason error from vcl_deliver is invalid is because vcl_error goes to
 vcl_deliver, so one might end up with unwanted looping. Rather than adding
 in extra complexity for dealing with this, it is simply decided that you
 can't error from vcl_deliver.

 The typical "hack"/workaround for this is to set some flag like req.http.x
 -do-error, issue a return(restart) and then error from vcl_recv.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1216#comment:3>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list