Listener tests cover zone-transfer rate limiting over TLS and QUIC and the RA pending-reply cap #308
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!308
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/55-listener-rate-limit-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Listener-level tests now cover zone-transfer rate limiting over TLS and QUIC and the Router Advertisement pending-reply cap.
Tests (real listeners on loopback; QUIC tests return early without libmsquic, and ran here):
DnsOverTlsZoneTransferRateLimitTests(4) andDnsOverQuicZoneTransferRateLimitTests(3): an AXFR beyond the budget gets no reply (TLS closes the connection; QUIC resets the stream with DOQ_EXCESSIVE_LOAD, RFC 9250 §4.3); a subnet Drop never calls the transfer service; a served AXFR publishes exactly one query-log event; a denied one publishes none.Icmpv6RaListenerPendingReplyCapTests(6): the cap of 16 pending solicited replies, a finished reply freeing a slot, and RFC 4861 §6.2.6 coalescing of::solicitations.Production changes (small):
Icmpv6RaListener: the admission check moves unchanged out of the raw-socket receive loop intointernal TryAdmitSolicitation, so it can be tested without CAP_NET_RAW.DnsOverTlsListener.BoundPortandDnsOverQuicListener.BoundPortreport the port bound (meaningful for a single-address listener), so tests start on port 0 per the AGENTS.md rule.ZoneTransferRequestRunnerlogs a denied transfer at Debug with the client, the zone and the reason, like rate-limited queries; TCP, DoT and DoQ pass their logger. Denied transfers still publish no query-log event.Port rule: the new tests and the existing DoT/DoQ tests use port 0 +
BoundPort; two multi-address tests that need one shared port keepGetFreePort()with a comment.Mutation checks (scratch, restored): removing the runner's rate-limit check, or not passing the limiter to the DoT/DoQ listener, fails 2 of 3 transfer tests each; a different DoQ abort code fails them; raising the RA cap fails 4 of 6; removing
::coalescing fails 2 of 6; removing the pending-flag reset fails 1; logging at Trace instead of Debug fails the log test.Results: new classes 10/10 runs; DoT 47, DoQ 21, Plain 19, Authoritative 670, Ra 120 pass; full DoT and DoQ suites 10/10 after the port conversion; build 0 warnings; csharpier clean.
Closes #55
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK