1. 21 Feb, 2019 1 commit
  2. 14 Jan, 2019 1 commit
    • Vladimír Čunát's avatar
      kr_rplan_pop(): avoid reordering kr_rplan::pending · 288cca5b
      Vladimír Čunát authored
      - It's not ideal, but this will need significant overhaul anyway when
        "parallel queries" get implemented.
      - I didn't put this into array.h, as we don't seem likely to need it
        anywhere else and implementation in macros would be ugly.
      - It's unclear whether this "bug" could cause anything in practice.
      288cca5b
  3. 11 Dec, 2018 1 commit
  4. 26 Nov, 2018 1 commit
  5. 12 Oct, 2018 2 commits
  6. 14 Aug, 2018 1 commit
  7. 11 May, 2018 1 commit
  8. 15 Feb, 2018 1 commit
  9. 31 Jan, 2018 1 commit
  10. 30 Jan, 2018 1 commit
  11. 08 Jan, 2018 1 commit
  12. 21 Dec, 2017 2 commits
    • Marek Vavruša's avatar
      lib: added support for trace_log for verbose messages · 393b738a
      Marek Vavruša authored
      The `QRVERBOSE` macro uses the `query` pointer to find out whether the
      request has trace log enabled. If it does, it uses trace log to log verbose messages using that callback (regardless of whether verbose mode is set or not).
      
      This required changing of structure printing functions to formatting functions returning textual representation of the objects (dname, rrset, pkt).
      This is potentially slower as creates heap objects, but it doesn't happen
      in the hotpath so it doesn't really matter for verbose logs.
      393b738a
    • Marek Vavruša's avatar
      lib/rplan: remember request context in each query · 26adb0b0
      Marek Vavruša authored
      This doesn't affect any of the objects lifetime, just provides a
      convenience for logging as some subsystems take only pointer of queries
      not the request object.
      26adb0b0
  13. 08 Dec, 2017 1 commit
    • Vitezslav Kriz's avatar
      use monotonic time · 0abbe1f4
      Vitezslav Kriz authored
      Monotonic time from libuv function uv_now (wrapped in kr_now) is
      used for query timeout, stats and RTT in reputation cache.
      
      Cache, DNSSEC Validation and Cookies use real time.
      0abbe1f4
  14. 07 Dec, 2017 1 commit
    • Petr Špaček's avatar
      rplan: fix kr_qflags_*() to work with more than 32 flags · 4f79b91d
      Petr Špaček authored
      Originally division around sizeof(uint32_t) caused silent truncation
      for struct kr_qflags with sizes not multiple of 4 bytes.
      
      Attempts to optimize using uint32_t blocks could lead to read/write
      beyond end of uint32_t so I'm not willing to risk it.
      
      Also, the code was refactored to avoid duplication between _set and _clear.
      Quick look into assembly produced by gcc 7.2.1 with -O2 on x86_64 confirms that
      all auxiliary functions got inlined so there are not extra function calls.
      
      Unit tests are attached. These fail on the previous version of _set() and
      _clear() and work now.
      4f79b91d
  15. 05 Dec, 2017 1 commit
  16. 11 Sep, 2017 1 commit
  17. 07 Sep, 2017 1 commit
  18. 01 Aug, 2017 5 commits
  19. 30 Jun, 2017 1 commit
  20. 01 Jun, 2017 2 commits
  21. 25 Jan, 2017 1 commit
  22. 11 Jan, 2017 1 commit
  23. 12 Dec, 2016 1 commit
  24. 24 Oct, 2016 1 commit
  25. 25 Aug, 2016 1 commit
  26. 11 Aug, 2016 5 commits
  27. 16 Jul, 2016 1 commit
  28. 12 Jul, 2016 1 commit
  29. 17 Dec, 2015 1 commit