[Varnish] #802: Assert error in VRT_r_obj_status()

Varnish varnish-bugs at varnish-cache.org
Wed Nov 3 10:50:40 CET 2010

#802: Assert error in VRT_r_obj_status()
 Reporter:  David Busby  |       Owner:  phk             
     Type:  defect       |      Status:  new             
 Priority:  low          |   Milestone:                  
Component:  varnishd     |     Version:  2.1.4           
 Severity:  minor        |    Keywords:  VRT_r_obj_status

Comment(by David Busby):

 The following is current what is being tested:

 sub vcl_fetch {
                 if internal server error encountered
                 set grace to 60s and restart, this should keep serving
                 old content untill the backend is returned to service,
                 you may want to include other codes on a per application
 basis (403/503 in drupal for example)
         if( beresp.status == 500 ){
                 if(req.restarts < 4){
                         set beresp.grace = 60s;

                                 syslog(LOG_ERR, "Spurious response from
 backend: xid %s request %s %s \"%s\" %d \"%s\" \"%s\"", VRT_r_req_xid(sp),
 VRT_r_req_request(sp), VRT_GetHdr(sp, HDR_REQ, "\005host:"),
 VRT_r_req_url(sp), VRT_r_beresp_status(sp), VRT_r_beresp_response(sp),
 VRT_GetHdr(sp, HDR_OBJ, "\011Location:"));


Ticket URL: <http://varnish-cache.org/trac/ticket/802#comment:6>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list