Subject: CVS commit: pkgsrc/benchmarks/dnsperf
From: Matthias Scheler
Date: 2021-03-23 19:17:26
Message id: 20210323181726.38199FA95@cvs.NetBSD.org

Log Message:
dnsperf: Update to version 2.5.1

This also fixes build problems with bind-9.16.13. Detailed changes:

- Release 2.5.1

  This release re-adds support for TYPEnnn and ANY in the datafile, this
  was missed during the removal of the dependency on BINDs development
  libraries in v2.4.0.

  Also note that with v2.5.0, this software now depends on Concurrency
  Kit (ck) for atomic operations.

- Release 2.5.0

  This release adds re-connection support for TCP and DoT protocol,
  new options to `resperf` and fixes a few bugs.

  `dnsperf` and `resperf` will now try to re-connect when they lose a TCP
  or DoT connection, and with that comes a few new statistics metrics.
  For `dnsperf`, if a connection oriented protocol is used, it will now
  show the total number of re-connections made and the connection latency.
  For `resperf` it also shows the total number of re-connections made and
  the gnuplot data now contains the total number of connections made and
  the connection latency for each interval.
  Beside re-connection support, improvements have been made when it comes
  to tracking socket readiness while connections are established which
  should generate less warnings about "socket not ready".

  New `resperf` options:
  - `-R`: Reopen the datafile if it runs out of data before the testing
    is completed. This allows for long running tests on very small and
    simple query datafile.
  - `-F <fall_behind>`: Sets the maximum number of queries that can fall
    behind being sent. `resperf` will stop when this many queries should
    have been sent and it can be relative easy to hit if `-m <max_qps>`
    is set too high.
    The default is 1000 and setting it to zero (0) disables the check.

  Bugfixes:
  - Fixed port handling for host/network format when setting client side
    port with `-x`
  - Fix support for quoted characters, `\000` and `\.`, in domain names,
    this was lost when removing BIND's internal development libraries
  - Fix issue in `dnsperf`, it would loop forever if no connection could
    be established
  - Fix potential buffer overrun in `resperf` when using response id
    for `queries[]`
  - DoT: Fix bug when sending from buffer

  Other changes:
  - Always use `IPV6_V6ONLY` socket option for IPv6
  - Add man-page on `-W` option added in v2.4.0
  - Reformat man-pages
  - `resperf`:
    - Try and process more request each run to hopefully not hit max
    outstanding so easy when high QPS
    - Add default value to `-C` so it shows in help

- Release 2.4.2

  This release fixes a few issues with reading of the datafile which
  could lead to "ran out of data" errors.

  The problem was that reading from the datafile was done before finding
  a socket to send it on, or socket readyness, and that lead to progressing
  the queries without really doing anything.
  Another issues that's been fixed was that if the read lines perfectly
  aligned with the buffer, it would be treated like EOF and caused an exit.

- Release 2.4.1

  This release fixes an issue with the socket readiness function that
  could cause a buffer overflow (`-T 10 -c 2000`) due to `select()` being
  limited to check 1023 sockets. `poll()` is now used which has no limit.

  There has also been a few fixes to the contrib script `queryparse` that
  has to do with python v2 and v3 compatibility and better exception
  handling.

- Release 2.4.0

  This release removes the dependency on BIND's internal development
  libraries! This make building and packaging a lot easier and less
  troublesome in the future.

  This software now depends only on OpenSSL (for TSIG feature) with an
  optional depend on LDNS (for dynamic updates feature).

  New option:
  - Transport mode option `-m`/`-M` now recognizes `dot` alongside `tls`
    for encrypted DNS
  - Added `-W` for outputting warnings and errors to stdout

  Other changes / bugfixes:
  - Fix potential memory leak of query descriptions when using verbose
  - Only use TLS v1.2 and above for DoT/TLS
  - Add a lot of tests
  - Add coverage testing

Files:
RevisionActionfile
1.19modifypkgsrc/benchmarks/dnsperf/Makefile
1.7modifypkgsrc/benchmarks/dnsperf/distinfo