[Varnish] #1662: BereqProtocol showing twice for HTTP 1.0 requests

Varnish varnish-bugs at varnish-cache.org
Mon Feb 16 14:17:53 CET 2015


#1662: BereqProtocol showing twice for HTTP 1.0 requests
--------------------+---------------------
 Reporter:  fgsch   |       Owner:  aondio
     Type:  defect  |      Status:  new
 Priority:  normal  |   Milestone:
Component:  build   |     Version:  trunk
 Severity:  normal  |  Resolution:
 Keywords:          |
--------------------+---------------------

Comment (by lkarsten):

 We have the same situation for other non-header attributes of a bereq.

 With the following VCL:
 {{{
 sub vcl_backend_fetch {
     if (bereq.url ~ "/foo") {
             set bereq.url = bereq.url + "&more_cake=yes";
             set bereq.method = "OPTIONS";
     }
     set bereq.http.fakeheader = "headervalue";
     unset bereq.http.fakeheader;
 }
 }}}

 We see that it behaves the same for bereq.method and bereq.url:

 {{{
 *   << BeReq    >> 459249
 -   Begin          bereq 459248 fetch
 -   Timestamp      Start: 1424092291.716213 0.000000 0.000000
 -   BereqMethod    GET
 -   BereqURL       /foo/?26609
 -   BereqProtocol  HTTP/1.0
 -   BereqHeader    Host: hyse.org
 -   BereqHeader    User-Agent: Python-urllib/2.7
 -   BereqHeader    X-Forwarded-For: 2001:16d8:ee00:1c1::2
 -   BereqProtocol  HTTP/1.1
 -   BereqHeader    Accept-Encoding: gzip
 -   BereqHeader    X-Varnish: 459249
 -   VCL_call       BACKEND_FETCH
 -   BereqURL       /foo/?26609&more_cake=yes
 -   BereqMethod    OPTIONS
 -   BereqHeader    fakeheader: headervalue
 -   BereqUnset     fakeheader: headervalue
 -   VCL_return     fetch
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1662#comment:3>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list