The DNSCrypt forwarder tests' loopback relay stops cleanly on Windows when its receive is aborted #368
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!368
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/367-relay-abort-on-windows"
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?
The DNSCrypt forwarder tests' loopback relay now stops cleanly on Windows. This is a test-only change in
DnsCryptForwarderClientTests.cs, and it fixes the one test that failed in the firsttest-windowsrun on develop (run 1310).SocketException(OperationAborted, 995). The relay caught onlyOperationCanceledExceptionandObjectDisposedException, so a teardown race failed the test.LoopbackRelay.EndedByStoptreats an aborted or interrupted receive as a normal end only when the stop token is already cancelled. The relay cancels before it closes, so an abort before the stop still fails. All three relay loops use it.BoundPort; the harness binds UDP on port 0 and TCP on the same number, with a bounded retry.Verified: the coder showed it red on Lofnheim (7 of 9 fail with the close moved before the cancel).
Ninlil.Dns.Server.Forwarding.Testspassed 258/258 in 20 runs by the coder and 10 by the verifier, on both Windows and Linux. The build has 0 warnings and csharpier is clean.Closes #367
Refs #8
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK