The plain forwarder's truncated-UDP test passes on Windows, and a UDP reset from an upstream counts as a failed attempt #364
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#364
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?
Part of epic #8. Found by the manual run of the new
test-windowsjob (#18) on Lofnheim, 2026-11-06.test-windowsjob goes red on its first push without it)BoundPort)Why
Ninlil.Dns.Server.Forwarding.ClientProtocols.Tests.PlainForwarderClientTests.ForwardAsync_WhenTheUdpAnswerIsTruncated_RetriesOverTcpAndGetsTheFullAnswerfails natively on Windows: 1 failed, 4 passed in the project. It throwsSocketException: An existing connection was forcibly closed by the remote hostfromSocket.ReceiveFromAsyncinPlainForwarderClient.ForwardUdpWithFreshSocketAsync(src/dotnet/src/Ninlil.Dns.Server.Forwarding/Clients/PlainForwarderClient.cs, called from about line 125). It passes on Linux.TestPortfrom a free TCP port (GetFreePort, reserve and release) and binds bothUdpDnsListenerandTcpDnsListenerto it. Possible causes: the UDP listener lost the port or was not yet bound when the first query went out. This is a hypothesis.What changes
UdpDnsListener.BoundPort, then bind TCP on that number with a bounded retry, asDualStackClientAddressTestsdoes in part 2.SocketException. Confirm the forwarding callers (failover between forwarders, the per-forwarder timeout, query-log outcome) treat that exception as a failed attempt, the same as a timeout, and do not surface it as an unhandled error. If they do not, fix that in a separate commit with a test.Acceptance
Ninlil.Dns.Server.Forwarding.ClientProtocols.Testspasses 20 times in a row natively on Lofnheim and in the CI container on asgard.Ghost referenced this issue2026-11-06 21:29:02 -05:00