[Varnish] #1740: Condition((ObjGetSpace(wrk, req->objcore, &sz, &ptr)) != 0) not true.

Varnish varnish-bugs at varnish-cache.org
Mon May 25 17:24:28 CEST 2015


#1740: Condition((ObjGetSpace(wrk, req->objcore, &sz, &ptr)) != 0) not true.
-----------------------+----------------------------------
 Reporter:  zaterio@…  |       Owner:
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:  Varnish 4.0 release
Component:  build      |     Version:  trunk
 Severity:  normal     |  Resolution:
 Keywords:             |
-----------------------+----------------------------------

Comment (by zaterio@…):

 I can confirm when I remove the synth response:
 {{{
 sub vcl_recv {
         if (req.url ~ "/crossdomain\.xml$") {
                 return (synth (701, ""));
         }
 }

 sub vcl_synth {
         unset resp.http.X-Backend;
         unset resp.http.X-Varnish;
         set resp.http.Server = server.hostname;


  if (resp.status == 701) {
                 set resp.status = 200;
                 set resp.http.Content-Type = "application/xml";
                 synthetic( {"<?xml version="1.0" ?>
 <cross-domain-policy>
 <allow-access-from domain="*" />
 </cross-domain-policy>"});
                 return (deliver);
         }
         return (deliver);
 }
 }}}


 and I get the response from the backend , the panic is not generated

 {{{
 if (req.url ~ "/crossdomain\.xml$") {
                 set req.backend_hint = vod;
                 return (hash);
         }
 }}}

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



More information about the varnish-bugs mailing list