1. 19 Sep, 2017 3 commits
  2. 11 Sep, 2017 2 commits
    • Dridi Boukelmoune's avatar
      Test case for #2422 · 970f2a3a
      Dridi Boukelmoune authored
      970f2a3a
    • Dridi Boukelmoune's avatar
      Ignore req.ttl when keeping track of epired objects · ad92c565
      Dridi Boukelmoune authored
      The goal of `req.ttl` is to allow lower requirements for known
      transactions (since this has to be done in VCL) but objects with
      an age higher than `req.ttl` would always be considered expired
      during lookup even if their actual TTL (obj.ttl) is still positive.
      
      Ignoring `req.ttl` gives a better control over explicit refreshes
      made to optimize latency and greatly reduces the risk of running
      into #1799 (for a subset of use cases).
      
      Refs #2422
      ad92c565
  3. 05 Sep, 2017 3 commits
    • Pål Hermunn Johansen's avatar
      Update the manual with new default · 4f124446
      Pål Hermunn Johansen authored
      My previous patch did not update the manual and the usage message for
      varnishtest concerning the default internal buffer size.
      4f124446
    • Pål Hermunn Johansen's avatar
      Make testcase 2372 work on SunOS · 8625540b
      Pål Hermunn Johansen authored
      Since SunOS needs a litt bit more workspace_thread, this test case
      needs to be updated.
      
      The default buffer size for vtc (configurable with -b) had to be
      increased.
      
      Conflicts:
      	bin/varnishtest/vtc_main.c
      8625540b
    • Pål Hermunn Johansen's avatar
      Fix problem with purging and the n_obj_purged counter · c2e69f4d
      Pål Hermunn Johansen authored
      When the do..while loop in HSH_Purge executes on a oh with many
      popular variants, there is a potential problem with the "array" of oc
      pointers, allocated in the thread workspace. If many of the oc's have
      positive refcounts, they will fill up the array and
      
      	EXP_Rearm(oc, now, ttl, grace, keep);
      	(void)HSH_DerefObjCore(wrk, &oc, 0);
      
      will be called several on the same oc's. At the same time, the counter
      n_obj_purged will be updated with a too low number.
      
      The test case demonstrates how we get a too low value for this counter,
      but it is not able to force varnishd to use a siginificant amount of CPU.
      
      Conflicts:
      	include/tbl/oc_flags.h
      	bin/varnishd/cache/cache_hash.c
      	bin/varnishd/cache/cache.h
      c2e69f4d
  4. 22 Aug, 2017 1 commit
    • Nils Goroll's avatar
      Expose to VCL whether or not a fetch is a background fetch (bgfetch) · bf167ec4
      Nils Goroll authored
      The use case are cluster requests: Intra-cluster bgfetches should
      trigger a synchronous fetch on the peer-varnish in order to avoid
      additional short-lived / expired objects being created. Or, in
      other words, a bgfetch should actually get a fresh object and not
      one in grace from another cache.
      
      Merges #2376
      
      This is a back port of d7f8b531.
      
      Conflicts:
      	bin/varnishd/cache/cache_fetch.c
      	doc/changes.rst
      	include/tbl/bo_flags.h
      bf167ec4
  5. 08 Aug, 2017 3 commits
  6. 07 Aug, 2017 1 commit
  7. 01 Aug, 2017 3 commits
  8. 14 Jul, 2017 1 commit
  9. 28 Jun, 2017 2 commits
  10. 27 Jun, 2017 2 commits
  11. 23 Jun, 2017 2 commits
    • Nils Goroll's avatar
      fix the std.getenv example · 39126450
      Nils Goroll authored
      39126450
    • Pål Hermunn Johansen's avatar
      Prevent storage backends name collisions · 26bb5f02
      Pål Hermunn Johansen authored
      This is a backport of 98676319 by Dridi Boukelmoune, but this patch
      is a bit different from the original.
      
      Now name collisions with transient will be reported in a sane way
      instead of producing an assert. Normal name collisions are also more
      readable.
      
      The test case is unmodified, thanks to resent back porting efforts in
      varnishtest.
      
      Fixes #2321
      
      Conflicts:
      	bin/varnishd/storage/mgt_stevedore.c
      26bb5f02
  12. 15 Jun, 2017 17 commits