1. 16 Aug, 2018 5 commits
    • Pål Hermunn Johansen's avatar
      Update the documentation on grace and keep · ab7b2b18
      Pål Hermunn Johansen authored
      The main point is to clearly recomend using req.grace for the most
      common use case - using different grace time when the backend is
      healthy.
      ab7b2b18
    • Pål Hermunn Johansen's avatar
      Undeprecate req.ttl · 4faaa055
      Pål Hermunn Johansen authored
      Right now there are use cases that cannot be solved without req.ttl,
      so we undeprecate it.
      4faaa055
    • Pål Hermunn Johansen's avatar
      Reintroduce the req.grace variable, change keep behavior · f80c03d6
      Pål Hermunn Johansen authored
      The req.grace variable can be set in vcl_recv to cap the grace
      of objects in the cache, in the same way as in 3.0.x
      
      The "keep" behavior changes with this patch. We now always go
      to vcl_miss when the expired object is out of grace, or we go
      to the waiting list. The result is that it is no longer
      possible to deliver a "keep" object in vcl_hit.
      
      Note that when we get to vcl_miss, we will still have the 304
      candidate, but without the detour by vcl_hit.
      
      This commit changes VCL, but only slightly, so we aim to back
      port this to earlier versions of Varnish Cache.
      
      Refs: #1799 and #2519
      f80c03d6
    • Geoff Simmons's avatar
      For backends with PROXYv1, send UNKNOWN in a probe if the backend's · 21314625
      Geoff Simmons authored
      address family is neither of AF_INET or AF_INET6.
      
      This means that UNKNOWN is sent in probes to UDS backends when
      .proxy_header=1 is set.
      
      Also verify that a UDS backend receives PROXY LOCAL in a probe when
      .proxy_header=2 is set.
      
      Fixes #2702
      Closes #2726
      21314625
    • Dag Haavi Finstad's avatar
      Simplify memory handling around struct h2h_decode · 346eb5d1
      Dag Haavi Finstad authored
      Since we verify that header blocks are not interleaved, and we zero the
      struct h2h_decode on every new header block, there is no need to malloc
      a separate struct h2h_decode per stream.
      346eb5d1
  2. 14 Aug, 2018 19 commits
  3. 20 Jun, 2018 16 commits