The plain-DNS listener tests do not fail on Windows when the OS refuses a port for a moment #341
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.
Blocks
Reference
lantea-one/ninlil#341
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Why
Ninlil.Dns.Protocol.Plain.Testsfails in about 10% of runs: 5 of 50 runs, after847bddeb.PlainListenAddressTests.NoListenAddresses_WhenThePortIsTaken...fails with aSocketException"access permissions" on a UDP bind to port 0 (PlainListenAddressTests.cs:67).InvalidOperationException"Could not find a port free for both UDP and TCP" fromFakes/LocalAddresses.cs:46(GetFreePort, 20 attempts), for exampleUdpReceiveTests.StopAsync_...andDualStackClientAddressTests.UdpClientOverIPv4_....netsh int ipv4 show excludedportrange protocol=udplists 7 excluded ranges inside 49152-65535. The product code is not involved.What changes
SocketExceptionwith a short backoff and a bounded total time, with a comment that says why.TcpDnsListenercannot, so it keeps the bounded retry.Acceptance
Ghost referenced this issue2026-11-06 12:18:13 -05:00
Ghost referenced this issue2026-11-06 12:32:24 -05:00
Ghost referenced this issue2026-11-06 15:14:01 -05:00