[Varnish] #1157: Returning pass in vcl_recv when doing streaming causes backend keepalive to fail ( "Stream Error" )

Varnish varnish-bugs at varnish-cache.org
Mon Jun 18 16:32:38 CEST 2012


#1157: Returning pass in vcl_recv when doing streaming causes backend keepalive to
fail ( "Stream Error" )
-------------------+--------------------------------------------------------
 Reporter:  tnt    |        Type:  defect
   Status:  new    |    Priority:  normal
Milestone:         |   Component:  build 
  Version:  3.0.2  |    Severity:  normal
 Keywords:         |  
-------------------+--------------------------------------------------------
 If in a vcl_recv you return pass and you make use of streaming, the
 varnishlog will report a "Stream Error".

 I traced the issue to cnt_streambody that considers the lack of
 sp->obj->objcore to be a "Stream Error" which is not the case.

 Fix is attached (tested for > 1 week in prod. It fixed the issue and
 didn't turn up any bad effects)

 This doesn't happen in the git master because of the stream code rewrite,
 but it does happen in 3.0.3 rc1 and I think it'd be useful to be fixed for
 3.0.3.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1157>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list