[Varnish] #365: Calling "restart" from "vcl_hit" serves an empty request.

Varnish varnish-bugs at projects.linpro.no
Thu Nov 6 20:57:33 CET 2008


#365: Calling "restart" from "vcl_hit" serves an empty request.
----------------------+-----------------------------------------------------
 Reporter:  nkallen   |        Owner:  phk  
     Type:  defect    |       Status:  new  
 Priority:  normal    |    Milestone:       
Component:  varnishd  |      Version:  trunk
 Severity:  normal    |   Resolution:       
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by nkallen):

 Here is a failing test:

 test "Test restarts in vcl_hit"

 server s {
         rxreq
         expect req.url == "/foo"
         txresp -status 200
 } -start

 varnish v -vcl+backend {
         sub vcl_hit {
                 set obj.ttl = 0s;
                 restart;
         }
 } -start

 client c1 {
         txreq -url "/foo"
         rxresp
         expect resp.status == 200

         txreq -url "/foo"
         rxresp
         expect resp.status == 200
 } -run

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/365#comment:1>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list