You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9a3f3d2
Browse filesBrowse the repository at this point in the historyBrowse files
Book per-resolver rate slots per wire query (#236)
The pool reserved len(l.Types) slots of a member's rate cap per lookup,
or one for empty types, while the lookup sends sum(queriesPerType):
two for the default A and AAAA, three per CNAME. Library callers on
default types and anyone with CNAME in -type sent members up to twice
the -rate-per-resolver cap. Add queriesFor(types), matching what the
global limiter charges, and use it at every reserve call.
Fixes#236
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
44
44
- An unreadable `-seeds` file no longer leaves a hidden `.<name>.tmp` file beside the `-o` path (kept locked on Windows until exit): seeds are read before the output file is opened (#212).
45
45
- On Windows, `-simulate-zone` labs and the test DNS server no longer fail to start about a quarter of the time with "no free UDP+TCP port pair": after a failed TCP bind the server retries on random ports instead of the next OS-assigned one, which stayed inside the same reserved port block (#204).
46
46
- A `scan.Config` built directly with `Attempts: 0` now makes one attempt per name instead of passing preflight and then failing every lookup without a query. Scan workers, `scan.Verify` and the wildcard near-miss probes share one resolve path (test hook, simulation, or the trusted resolver), and the `internal/dns` lookup helpers take a `dns.Lookup` value (resolver, timeout, attempts, types, logger) instead of long positional parameter lists, so a swapped attempts/types argument no longer compiles (#163).
47
+
-`-rate-per-resolver` (and `pkg/subenum`'s `RatePerResolver`) now holds: each pool lookup books one slot per DNS query it sends, as `-rate` does, instead of one per record type. The default A and AAAA lookup from the library booked one slot for two queries, and a CNAME lookup one for three, so members got up to twice the cap (#236).
47
48
48
49
### Security
49
50
- The GitHub Action checks the downloaded release archive's build provenance with `gh attestation verify` as well as its `checksums.txt`, since an archive and its checksums file could be replaced together. The Pages workflow grants `pages: write` and `id-token: write` only to the job that deploys, not to the whole workflow (#210).
0 commit comments