A zone transfer over DNS-over-TLS is not lost on Windows when the client sent one more message #340
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.
Depends on
Reference
lantea-one/ninlil#340
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
TcpDnsListenerandDnsCryptTcpListenernow useLingeringSocketClose.CloseAsyncwhenFramedDnsStreamSession.ClosedAfterDrainis true.DnsOverTlsListener.HandleConnectionAsync(src/dotnet/src/Ninlil.Dns.Protocol.DnsOverTls/DnsOverTlsListener.cs, thefinallythat disposessslStreamandnetworkStreamaround line 329) still closes the socket throughSslStreamandNetworkStream(ownsSocket: true). An AXFR or IXFR over TLS whose client sent one more message can therefore lose its last message on Windows in the same way.What changes
TcpZoneTransferCloseTestsinNinlil.Dns.Protocol.Plain.Tests, over a TLS client.SslStream.ShutdownAsync), then do the lingering close on the socket before disposing. The socket must always be closed, the stopping token must be honoured and the 2 s bound kept.Acceptance
Ghost referenced this issue2026-11-06 12:32:24 -05:00
Ghost referenced this issue2026-11-11 23:33:37 -05:00