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

Varnish varnish-bugs at varnish-cache.org
Mon May 2 19:08:56 CEST 2011


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

 We have detected a problem with the development version of Varnish. When a
 “Transfer-Enconding: chunked” header is sent by the backend, Varnish
 returns a 503 error. You can check it with a simple php script and the
 default vcl file, only setting a backend server:[[BR]]

 {{{
 <?php
 header('Transfer-Encoding: chunked');
 }}}


 In my test, the headers involved in the negotiation were the next
 ones:[[BR]]

 '''Response headers from the backend'''

 {{{
 Date Fri, 29 Apr 2011 12:49:53 GMT
 Server Apache
 X-Powered-By PHP/5.3.3
 Transfer-Encoding chunked
 Vary Accept-Encoding,User-Agent
 Content-Encoding gzip
 Content-Length 20
 Connection close
 Content-Type text/html; charset=utf-8
 }}}

 '''Request headers from the browser'''

 {{{
 Host base.jcallon.coredev:8080
 User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.2.16)
 Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729)
 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
 Accept-Language es-es,es;q=0.9,en;q=0.8,en-us;q=0.7,en;q=0.6,zh-
 cn;q=0.5,zh;q=0.4,zh-hk;q=0.3,zh-sg;q=0.2,zh-tw;q=0.1
 Accept-Encoding gzip,deflate
 Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive 115
 Connection keep-alive
 Cache-Control max-age=0
 }}}

 '''Response headers sent by Varnish'''


 {{{
 Server Varnish
 Content-Type text/html; charset=utf-8
 Retry-After 5
 Content-Length 419
 Accept-Ranges bytes
 Date Fri, 29 Apr 2011 12:48:27 GMT
 X-Varnish 1697788292
 Age 0
 Via 1.1 varnish
 }}}
 Tested using several versions, included last one: http://repo.varnish-
 cache.org/snapshots/varnish-trunk+2011-05-02.tar.gz

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




More information about the varnish-bugs mailing list