1. 25 Jun, 2020 2 commits
  2. 24 Jun, 2020 4 commits
    • Mark Andrews's avatar
      Merge branch... · 6d5fde62
      Mark Andrews authored
      Merge branch '1965-bin-named-unix-os-c-warning-s-directive-output-may-be-truncated-on-openindiana' into 'main'
      Resolve "bin/named/unix/os.c warning: '%s' directive output may be truncated on OpenIndiana"
      Closes #1965
      See merge request !3737
    • Mark Andrews's avatar
      Resize unamebuf[] to avoid warnings about snprintf() not having · 4bc3de07
      Mark Andrews authored
      enough buffer space.  Also change named_os_uname() prototype so
      that it is now returning (const char *) rather than (char *).  If
      uname() is not supported on a UNIX build prepopulate unamebuf[]
      with "unknown architecture".
    • Michał Kępień's avatar
      Merge branch '1970-fix-libtool-initialization' into 'main' · 1844b47e
      Michał Kępień authored
      Fix libtool initialization
      Closes #1970
      See merge request !3742
    • Michał Kępień's avatar
      Fix libtool initialization · a7982d14
      Michał Kępień authored
      The LT_INIT() call in configure.ac is effectively a no-op because it is
      preceded by a call to AC_PROG_LIBTOOL(), which is the previous name of
      LT_INIT() used in older libtool versions.  Replace AC_PROG_LIBTOOL()
      with AC_PATH_PROG() to look for libtool in PATH without initializing it,
      which is the originally intended behavior.
      Without this change, --enable-static is used by default, which causes a
      plain ./configure invocation to fail because static linking is now
      disallowed.  Drop --disable-static from the ./configure invocations used
      in GitLab CI to test this scenario continuously.
  3. 23 Jun, 2020 9 commits
  4. 22 Jun, 2020 17 commits
  5. 19 Jun, 2020 8 commits
    • Evan Hunt's avatar
      Merge branch 'each-rndc-netmgr-pt1' into 'main' · 5238433f
      Evan Hunt authored
      client-side TCP
      Closes #1958
      See merge request !3723
    • Evan Hunt's avatar
      CHANGES · 8b9e2d33
      Evan Hunt authored
    • Evan Hunt's avatar
      change the signature of recv callbacks to include a result code · 75c985c0
      Evan Hunt authored
      this will allow recv event handlers to distinguish between cases
      in which the region is NULL because of error, shutdown, or cancelation.
    • Evan Hunt's avatar
      implement isc_nm_cancelread() · 5191ec8f
      Evan Hunt authored
      The isc_nm_cancelread() function cancels reading on a connected
      socket and calls its read callback function with a 'result'
      parameter of ISC_R_CANCELED.
    • Evan Hunt's avatar
      shorten the sleep in isc_nm_destroy() · 870204fe
      Evan Hunt authored
      when isc_nm_destroy() is called, there's a loop that waits for
      other references to be detached, pausing and unpausing the netmgr
      to ensure that all the workers' events are run, followed by a
      1-second sleep. this caused a delay on shutdown which will be
      noticeable when netmgr is used in tools other than named itself,
      so the delay has now been reduced to a hundredth of a second.
    • Evan Hunt's avatar
      implement isc_nm_tcpconnect() · abbb79f9
      Evan Hunt authored
      the isc_nm_tcpconnect() function establishes a client connection via
      TCP.  once the connection is esablished, a callback function will be
      called with a newly created network manager handle.
    • Witold Krecicki's avatar
      allow tcpdns sockets to self-reference while connected · cd79b495
      Witold Krecicki authored
      A TCPDNS socket creates a handle for each complete DNS message.
      Previously, when all the handles were disconnected, the socket
      would be closed, but the wrapped TCP socket might still have
      more to read.
      Now, when a connection is established, the TCPDNS socket creates
      a reference to itself by attaching itself to sock->self. This
      reference isn't cleared until the connection is closed via
      EOF, timeout, or server shutdown. This allows the socket to remain
      open even when there are no active handles for it.
    • Evan Hunt's avatar
      modify reference counting within netmgr · 5ea26ee1
      Evan Hunt authored
      - isc__nmhandle_get() now attaches to the sock in the nmhandle object.
        the caller is responsible for dereferencing the original socket
        pointer when necessary.
      - tcpdns listener sockets attach sock->outer to the outer tcp listener
        socket. tcpdns connected sockets attach sock->outerhandle to the handle
        for the tcp connected socket.
      - only listener sockets need to be attached/detached directly. connected
        sockets should only be accessed and reference-counted via their
        associated handles.