1. 05 Mar, 2024 8 commits
    • Dridi Boukelmoune's avatar
      param: New duration tweak · 2b4ee24c
      Dridi Boukelmoune authored
      For all intents and purposes, it currently is exactly the same as the
      timeout tweak. The duration parameters are either not really timeouts,
      or timeouts that cannot be disabled. In other words, the timeout tweak
      will grow the ability to formally disable a timeout.
      
      Refs #3045
      2b4ee24c
    • Dridi Boukelmoune's avatar
      vtim: Change the semantics of vtim_poll_tmo() · 9d392361
      Dridi Boukelmoune authored
      From now on, INFINITY disables the timeout and NAN is no longer allowed.
      
      Refs #3045
      9d392361
    • Dridi Boukelmoune's avatar
      circleci: Only run the test suite on alpine · 862e8cce
      Dridi Boukelmoune authored
      There appears to be a race condition with distcheck where test-suite.log
      is removed and then another attempt at removing it fails:
      
          [...]
          test -z "test-suite.log" || rm -f test-suite.log
          rm -f libtool config.lt
          find . '(' -name '*.gcda' -o -name '*.gcda' ')' -exec rm '{}' ';'
          rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
          rm -f cscope.out cscope.in.out cscope.po.out cscope.files
          find: ./test-suite.log: No such file or directory
          [...]
      
      It is unclear which find command is choking on test-suite.log, there
      doesn't seem to be a make rule running find and targeting this file.
      Could it be the find command listed in the output collecting file names
      like test-suite.log and then failing to test it against the -name
      filters after it got removed? That would be infortunate for a find
      implementation.
      
      Since alpine is not a platform we officially support, and after failing
      numerous times to reproduce the link outside of the CI environment, a
      simple make check is good enough and it will remove a lot of noise.
      862e8cce
    • Dridi Boukelmoune's avatar
      esi: Skip the response body for onerror="continue" · d2f603c5
      Dridi Boukelmoune authored
      That is to say, when we can actually do that.
      d2f603c5
    • Dridi Boukelmoune's avatar
      c5b7a014
    • Dridi Boukelmoune's avatar
      f1949580
    • Dridi Boukelmoune's avatar
      esi: Restore the original onerror behavior · cffda50c
      Dridi Boukelmoune authored
      This is a partial revert of 582ded6a to
      restore the assumed onerror=continue behavior for ESI includes, unless
      the feature flag esi_include_onerror is raised.
      
      The part of the change that considers all status codes besides 200 and
      204 to be errors for ESI includes remains. A test case covers VCL's
      ability to "bless" error responses by overriding resp.status, allowing
      ESI delivery to continue on this criterion.
      
      Fixes #4053
      cffda50c
    • Dridi Boukelmoune's avatar
      circleci: Reduce concurrency of ubuntu:noble jobs · 0804bbab
      Dridi Boukelmoune authored
      In an attempt to avoid EAGAIN failures on pthread creations with ASAN
      and UBSAN sanitizers enabled.
      0804bbab
  2. 04 Mar, 2024 4 commits
  3. 01 Mar, 2024 15 commits
  4. 28 Feb, 2024 1 commit
    • Dridi Boukelmoune's avatar
      vtc: Coverage for withdrawn bgfetch · 3eeb8c4f
      Dridi Boukelmoune authored
      This adds coverage for a non-delivery transition from vcl_hit, where the
      busy objcore would drop its sole reference in the event of a grace hit.
      The lack of coverage was visible in the gcov dashboard:
      
          669   580   if (busy != NULL) {
          670   0     	(void)HSH_DerefObjCore(wrk, &busy, 0);
          671   0     	VRY_Clear(req);
          672   0     }
      
      There should now be at least one pass inside this block.
      
      Refs #4032
      3eeb8c4f
  5. 26 Feb, 2024 3 commits
  6. 19 Feb, 2024 3 commits
    • Nils Goroll's avatar
      Move decision on fetch_chunksize to the storage engine · d77da13b
      Nils Goroll authored
      For chunked encoding, we do not know how big the object is ultimately
      going to be, so VFP_GetStorage() called ObjGetSpace() with the
      fetch_chunksize parameter in this case.
      
      Yet which size is best might differ for different storage engines, and
      having the information that the caller does not know the final size
      might be relevant. Storage engines could guess that if a request came
      in for fetch_chunksize that this _might_ be the "chunked" case, but
      that heuristic would be wrong for Objects of just that size advertised
      via Content-Length.
      
      So this patch takes the guesswork out of the game by just passing the
      magic 0 value down to the storage engine to mean "give me some good
      chunk of bytes, I do not know how much I am going to need".
      d77da13b
    • Asad Sajjad Ahmed's avatar
      varnishd: kill the killlist · 8cbb4d1e
      Asad Sajjad Ahmed authored
      Since, we seems to not use it at all.
      Signed-off-by: 's avatarAsad Sajjad Ahmed <asadsa@varnish-software.com>
      8cbb4d1e
    • Poul-Henning Kamp's avatar
      Flexelinting · 2921ac50
      Poul-Henning Kamp authored
      2921ac50
  7. 15 Feb, 2024 1 commit
  8. 14 Feb, 2024 1 commit
  9. 13 Feb, 2024 3 commits
    • Dridi Boukelmoune's avatar
      v1f: Log a useful HTC status · 223847ea
      Dridi Boukelmoune authored
      Instead of adding hoops to the documentation, in particular to keep it
      in sync, improve the only location where we emit HTC status logs.
      
      We could also consider replacing the HTC enum with a struct, similar to
      what we did in other places. The struct symbols would be named after the
      UPPER name from the table, have a name and description fields, possibly
      replace the error number with a simple is_err field.
      
      Capturing the long description like this is less intrusive.
      
      Refs #4042
      223847ea
    • Dridi Boukelmoune's avatar
      7536a402
    • Dridi Boukelmoune's avatar
      v1l: restore errno on error · f364fa30
      Dridi Boukelmoune authored
      Spotted by Darryl Rodden.
      f364fa30
  10. 07 Feb, 2024 1 commit