1. 05 Oct, 2020 17 commits
  2. 02 Oct, 2020 13 commits
  3. 01 Oct, 2020 10 commits
    • Ondřej Surý's avatar
      Merge branch 'ondrej/fix-split-string-warnings-clang-12-v9_16' into 'v9_16' · 0bdfa2aa
      Ondřej Surý authored
      Fix the clang 12 warnings with multi-line strings in string arrays
      
      See merge request !4212
      0bdfa2aa
    • Ondřej Surý's avatar
      Fix the clang 12 warnings with multi-line strings in string arrays · 50db10b7
      Ondřej Surý authored and Ondřej Surý's avatar Ondřej Surý committed
      The clang 12 has a new warning that warns when using multi-line strings
      in the string arrays, f.e.:
      
          { "aa",
            "b"
            "b",
            "cc" }
      
      would generate warning like this:
      
          private_test.c:162:7: error: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Werror,-Wstring-concatenation]
                                            "33333/RSASHA1" };
                                            ^
          private_test.c:161:7: note: place parentheses around the string literal to silence warning
                                            "Done removing signatures for key "
                                            ^
          private_test.c:197:7: error: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Werror,-Wstring-concatenation]
                                            "NSEC chain",
                                            ^
          private_test.c:196:7: note: place parentheses around the string literal to silence warning
                                            "Removing NSEC3 chain 1 0 30 DEAF / creating "
                                            ^
          2 errors generated.
      
      (cherry picked from commit 7b07f229)
      50db10b7
    • Ondřej Surý's avatar
      Merge branch 'ondrej/cherry-picked-netmgr-v9_16' into 'v9_16' · 23ad0bcf
      Ondřej Surý authored
      Synchronize the netmgr changes with main branch
      
      See merge request !4211
      23ad0bcf
    • Ondřej Surý's avatar
      Add separate prefetch nmhandle to ns_client_t · 7a90ad1f
      Ondřej Surý authored
      As the query_prefetch() or query_rpzfetch() could be called during
      "regular" fetch, we need to introduce separate storage for attaching
      the nmhandle during prefetching the records.  The query_prefetch()
      and query_rpzfetch() are guarded for re-entrance by .query.prefetch
      member of ns_client_t, so we can reuse the same .prefetchhandle for
      both.
      
      (cherry picked from commit d4976e0e)
      7a90ad1f
    • Evan Hunt's avatar
      CHANGES · 4b6b3e41
      Evan Hunt authored and Ondřej Surý's avatar Ondřej Surý committed
      (cherry picked from commit e460e321)
      4b6b3e41
    • Evan Hunt's avatar
      fix LD_WRAP test in configure · b8db702a
      Evan Hunt authored and Ondřej Surý's avatar Ondřej Surý committed
      The LD_WRAP test in configure was broken, and failed to
      indicate LD_WRAP support correctly, resulting in some unit
      tests failing to run.
      
      (cherry picked from commit cfa4ea64)
      b8db702a
    • Ondřej Surý's avatar
      Refactor the pausing/unpausing and finishing the nm_thread · 1126fe3b
      Ondřej Surý authored
      The isc_nm_pause(), isc_nm_resume() and finishing the nm_thread() from
      nm_destroy() has been refactored, so all use the netievents instead of
      directly touching the worker structure members.  This allows us to
      remove most of the locking as the .paused and .finished members are
      always accessed from the matching nm_thread.
      
      When shutting down the nm_thread(), instead of issuing uv_stop(), we
      just shutdown the .async handler, so all uv_loop_t events are properly
      finished first and uv_run() ends gracefully with no outstanding active
      handles in the loop.
      
      (cherry picked from commit e5ab137b)
      1126fe3b
    • Witold Krecicki's avatar
      tracing of active sockets and handles · 4a7dfd69
      Witold Krecicki authored and Ondřej Surý's avatar Ondřej Surý committed
      If NETMGR_TRACE is defined, we now maintain a list of active sockets
      in the netmgr object and a list of active handles in each socket
      object; by walking the list and printing `backtrace` in a debugger
      we can see where they were created, to assist in in debugging of
      reference counting errors.
      
      On shutdown, if netmgr finds there are still active sockets after
      waiting, isc__nm_dump_active() will be called to log the list of
      active sockets and their underlying handles, along with some details
      about them.
      
      (cherry picked from commit 00e04a86)
      4a7dfd69
    • Evan Hunt's avatar
      limit the time we wait for netmgr to be destroyed · 686b73ae
      Evan Hunt authored and Ondřej Surý's avatar Ondřej Surý committed
      if more than 10 seconds pass while we wait for netmgr events to
      finish running on shutdown, something is almost certainly wrong
      and we should assert and crash.
      
      (cherry picked from commit 2f2d60a9)
      686b73ae
    • Evan Hunt's avatar
      add more logging to the shutdown system test · a73e807a
      Evan Hunt authored and Ondřej Surý's avatar Ondřej Surý committed
      the test server running in shutdown/resolver was not logging
      any debug info, which made it difficult to diagnose test failures.
      
      (cherry picked from commit cc7ceace)
      a73e807a