Files
tailscale/net/dns
Nick Khyl ca7616ca12 net/dns/resolver: make the TCP query timeout a forwarder field
TestForwarderRcodeWithHungTCP replaced the tcpQueryTimeout global with
tstest.Replace. A "tcp" query races the UDP and TCP arms from the start,
and race.Start returns on the UDP answer without waiting for the TCP arm,
so that goroutine could still be reading the global in sendTCP
when the test's cleanup restored it, which the race detector flagged.

Store the timeout on the forwarder instead, so that tests set it
on their own forwarder before using it.

Fixes #22943

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2026-12-05 15:14:00 -08:00
..
2026-07-10 17:39:16 -07:00