Re: [Varnish] #909: Varnish returns 503 error when a “Transfer-Enconding: chunked” header is sent by the backend

Varnish varnish-bugs at varnish-cache.org
Fri May 6 11:01:11 CEST 2011


#909: Varnish returns 503 error when a “Transfer-Enconding: chunked” header is
sent by the backend
------------------------------+---------------------------------------------
  Reporter:  borja            |        Type:  defect
    Status:  closed           |    Priority:  normal
 Milestone:  Varnish 3.0 dev  |   Component:  build 
   Version:  trunk            |    Severity:  normal
Resolution:  invalid          |    Keywords:        
------------------------------+---------------------------------------------
Changes (by phk):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 Transfer-Encoding: chunked is a very special header, that affects how the
 body of the object is transmitted on the wire.

 It is not a header you should ever set from a CGI script, and if you do,
 your webserver should detect it and handle it properly, either by removing
 it again or by switching to chunked transmission mode.

 Varnish does the right thing in this case, because the HTTP response it
 receives makes no sense.

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




More information about the varnish-bugs mailing list