[Varnish] #1684: Retried bereqs don't log BereqMethod, BereqURL, BereqProtocol or BereqHeader

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


#1684: Retried bereqs don't log BereqMethod, BereqURL, BereqProtocol or
BereqHeader
--------------------+---------------------
 Reporter:  scoof   |      Owner:
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:
Component:  build   |    Version:  unknown
 Severity:  normal  |   Keywords:
--------------------+---------------------
 When retrying a backend request, it does not log the full request:

 {{{
 *   << BeReq    >> 3
 -   Begin          bereq 2 fetch
 -   Timestamp      Start: 1424697235.589611 0.000000 0.000000
 -   BereqMethod    GET
 -   BereqURL       /
 -   BereqProtocol  HTTP/1.1
 -   BereqHeader    User-Agent: curl/7.38.0
 -   BereqHeader    Host: localhost:6081
 -   BereqHeader    Accept: */*
 -   BereqHeader    X-Forwarded-For: ::1
 -   BereqHeader    Accept-Encoding: gzip
 -   BereqHeader    X-Varnish: 3
 -   VCL_call       BACKEND_FETCH
 -   VCL_return     fetch
 -   Timestamp      Bereq: 1424697235.589768 0.000157 0.000157
 -   Timestamp      Beresp: 1424697235.590826 0.001215 0.001058
 -   BerespProtocol HTTP/1.1
 -   BerespStatus   200
 -   BerespReason   OK
 -   BerespHeader   Date: Mon, 23 Feb 2015 13:13:55 GMT
 -   BerespHeader   Server: Apache/2.4.10 (Debian)
 -   BerespHeader   Last-Modified: Wed, 05 Feb 2014 16:32:52 GMT
 -   BerespHeader   ETag: "2c1d-4f1ab4ef042ea-gzip"
 -   BerespHeader   Accept-Ranges: bytes
 -   BerespHeader   Vary: Accept-Encoding
 -   BerespHeader   Content-Encoding: gzip
 -   BerespHeader   Content-Length: 3149
 -   BerespHeader   Content-Type: text/html
 -   TTL            RFC 120 10 -1 1424697236 1424697236 1424697235 0 0
 -   VCL_call       BACKEND_RESPONSE
 -   VCL_return     retry
 -   BackendClose   21 default(127.0.0.1,::1,8080)
 -   Timestamp      Retry: 1424697235.590879 0.001268 0.000053
 -   Link           bereq 32769 retry
 -   End

 *   << BeReq    >> 32769
 -   Begin          bereq 3 retry
 -   Timestamp      Start: 1424697235.590879 0.001268 0.000000
 -   BereqHeader    X-Varnish: 32769
 -   VCL_call       BACKEND_FETCH
 -   VCL_return     fetch
 -   Timestamp      Bereq: 1424697235.590951 0.001340 0.000072
 -   Timestamp      Beresp: 1424697235.591609 0.001998 0.000658
 -   BerespProtocol HTTP/1.1
 -   BerespStatus   200
 -   BerespReason   OK
 -   BerespHeader   Date: Mon, 23 Feb 2015 13:13:55 GMT
 -   BerespHeader   Server: Apache/2.4.10 (Debian)
 -   BerespHeader   Last-Modified: Wed, 05 Feb 2014 16:32:52 GMT
 -   BerespHeader   ETag: "2c1d-4f1ab4ef042ea-gzip"
 -   BerespHeader   Accept-Ranges: bytes
 -   BerespHeader   Vary: Accept-Encoding
 -   BerespHeader   Content-Encoding: gzip
 -   BerespHeader   Content-Length: 3149
 -   BerespHeader   Content-Type: text/html
 -   TTL            RFC 120 10 -1 1424697236 1424697236 1424697235 0 0
 -   VCL_call       BACKEND_RESPONSE
 -   VCL_return     deliver
 -   Storage        malloc s0
 -   ObjProtocol    HTTP/1.1
 -   ObjStatus      200
 -   ObjReason      OK
 -   ObjHeader      Date: Mon, 23 Feb 2015 13:13:55 GMT
 -   ObjHeader      Server: Apache/2.4.10 (Debian)
 -   ObjHeader      Last-Modified: Wed, 05 Feb 2014 16:32:52 GMT
 -   ObjHeader      ETag: "2c1d-4f1ab4ef042ea-gzip"
 -   ObjHeader      Vary: Accept-Encoding
 -   ObjHeader      Content-Encoding: gzip
 -   ObjHeader      Content-Length: 3149
 -   ObjHeader      Content-Type: text/html
 -   Fetch_Body     3 length stream
 -   Gzip           u F - 3149 11293 80 80 25128
 -   BackendReuse   21 default(127.0.0.1,::1,8080)
 -   Timestamp      BerespBody: 1424697235.591868 0.002257 0.000259
 -   Length         3149
 -   BereqAcct      155 0 155 566 3149 3715
 -   End
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1684>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list