[Varnish] #137: regsub in vcl_hash fails

Varnish varnish-bugs at projects.linpro.no
Thu Aug 2 18:45:30 CEST 2007


#137: regsub in vcl_hash fails
--------------------+-------------------------------------------------------
 Reporter:  phk     |       Owner:  phk  
     Type:  defect  |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  build   |     Version:  trunk
 Severity:  normal  |    Keywords:       
--------------------+-------------------------------------------------------
 {{{
 CLI ready
 >>
 Child said (2, 44030): <<socktest: linger=0 sndtimeo=0 rcvtimeo=0
 >>
 Child said (2, 44030): <<Assert error in WS_Reserve(), cache_ws.c line
 103:
   Condition(ws->r == NULL) not true.
   errno = 0 (Unknown error: 0)
 >>
 Cache child died pid=44030 status=0x86
 Clean child
 Child cleaned
 start child pid 44031
 Child said (2, 44031): <<Child starts
 managed to mmap 2147479552 bytes of 2147479552
 Ready
 CLI ready
 >>
 }}}

 for vcl code:

 {{{
 sub vcl_recv {
         lookup;
 }

 sub vcl_hash {
         if (req.http.cookie) {
                 set req.hash += regsub(
                     req.http.cookie,
                     ".*=(.*)",
                     "$1");
         }
 }
 }}}

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


More information about the varnish-bugs mailing list