[Varnish] #56: varnish respond with HTTP/1.1 when resquest was HTTP/1.0 with pass

Varnish varnish-bugs at projects.linpro.no
Tue Oct 17 20:03:18 CEST 2006


#56: varnish respond with HTTP/1.1 when resquest was HTTP/1.0 with pass
----------------------+-----------------------------------------------------
 Reporter:  ced       |       Owner:  phk  
     Type:  defect    |      Status:  new  
 Priority:  high      |   Milestone:       
Component:  varnishd  |     Version:  trunk
 Severity:  major     |    Keywords:       
----------------------+-----------------------------------------------------
 How I found the bug :
 PHP fopen() of an URL served by varnish will fail because PHP fopen()
 requested HTTP/1.0 and got a HTTP/1.1 chunked transfer.

 Here is the log:

 {{{
    13 SessionOpen  c 193.110.146.66 46306
    13 ReqStart     c 193.110.146.66 46306 867277983
    13 RxRequest    c GET
    13 RxURL        c /test.php
    13 RxProtocol   c HTTP/1.0
    13 RxHeader     c Host: xxxxx
    13 VCL_call     c recv
    13 VCL_return   c lookup
    13 VCL_call     c miss
    13 VCL_return   c fetch
    16 BackendOpen  b default 127.0.0.1 18904 127.0.0.1 8080
    16 BackendXID   b 867277983
    13 Backend      c 16 default
    16 TxRequest    b GET
    16 TxURL        b /test.php
    16 TxProtocol   b HTTP/1.1
    16 TxHeader     b Host: xxxxx
    16 TxHeader     b X-Varnish: 867277983
    16 TxHeader     b X-Forwarded-for: 193.110.146.66
    16 RxProtocol   b HTTP/1.1
    16 RxStatus     b 200
    16 RxResponse   b OK
    16 RxHeader     b Date: Tue, 17 Oct 2006 17:53:03 GMT
    16 RxHeader     b Server: Apache/1.3.34 (Unix) PHP/4.4.2
    16 RxHeader     b X-Powered-By: PHP/4.4.2
    16 RxHeader     b Connection: close
    16 RxHeader     b Transfer-Encoding: chunked
    16 RxHeader     b Content-Type: text/html; charset=iso-8859-1
    13 TTL          c 867277983 RFC 120 1161107583 1161107583 0 0 0
    13 VCL_call     c fetch
    13 VCL_return   c pass
    13 RxProtocol   c HTTP/1.1
    13 RxStatus     c 200
    13 RxResponse   c OK
    13 RxHeader     c Date: Tue, 17 Oct 2006 17:53:03 GMT
    13 RxHeader     c Server: Apache/1.3.34 (Unix) PHP/4.4.2
    13 RxHeader     c X-Powered-By: PHP/4.4.2
    13 RxHeader     c Content-Type: text/html; charset=iso-8859-1
    13 RxHeader     c X-Varnish: 867277983
    13 RxHeader     c X-Forwarded-for: 193.110.146.66
    13 RxHeader     c Transfer-Encoding: chunked
    16 BackendClose b default
    13 ReqEnd       c 867277983 1161107583.126965000 1161107583.149932000
 0.000098000 0.019198000 0.003769000
     0 StatAddr       193.110.146.66 0 0 1 1 0 1 0 249 41315
    13 SessionClose c not HTTP/1.1
    13 StatSess     c 193.110.146.66 46306 0 1 1 0 1 0 249 41315
 }}}

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


More information about the varnish-bugs mailing list