[Varnish] #45: Bodyless response to "pass"-ed request is not delivered to client until server closes connection.

Varnish varnish-bugs at projects.linpro.no
Sat Sep 30 23:48:47 CEST 2006


#45: Bodyless response to "pass"-ed request is not delivered to client until
server closes connection.
----------------------+-----------------------------------------------------
 Reporter:  ilmari    |        Owner:  phk
     Type:  defect    |       Status:  new
 Priority:  normal    |    Milestone:     
Component:  varnishd  |      Version:     
 Severity:  major     |   Resolution:     
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by ilmari):

 RFC 2616 says "All 1xx (informational), 204 (no content), and 304 (not
 modified) responses MUST NOT include a message-body," so Content-Length:
 is not needed in these cases (and Apache does indeed not include it). This
 causes PassBody() to call pass_straight() with a NULL length argument,
 which waits until the connection is closed by the server. PassBody()
 should not call pass_*() at all for responses that are known to be
 bodyless.

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


More information about the varnish-bugs mailing list