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-17 15:33:17 -07:00
2026-01-23 15:49:45 -08:00
2026-12-05 15:14:00 -08:00
2026-09-29 16:11:57 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-11-18 09:25:28 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-11-24 09:05:32 -08:00
2026-07-14 07:26:41 -07:00
2026-07-14 07:26:41 -07:00
2026-10-13 15:48:31 -04:00
2026-09-30 10:44:22 -07:00
2026-10-01 15:37:30 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-09-29 16:11:57 -07:00
2026-10-13 15:48:31 -04:00
2026-07-02 12:21:54 -07:00
2026-07-02 12:21:54 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-04-14 06:55:35 -07:00
2026-03-06 13:32:03 -08:00
2026-10-13 15:48:31 -04:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-02-17 07:29:12 -10:00
2026-10-20 09:21:11 -04:00
2026-07-10 13:53:26 -06:00
2026-11-23 12:48:28 -08:00
2026-10-27 15:25:12 -04:00
2026-10-13 15:48:31 -04:00
2026-01-23 15:49:45 -08:00
2026-01-30 12:14:47 -05:00
2026-07-10 13:53:26 -06:00
2026-11-06 14:15:57 -08:00
2026-11-06 14:15:57 -08:00
2026-09-29 16:11:57 -07:00
2026-09-29 16:11:57 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-09-14 19:29:44 -07:00
2026-09-14 19:29:44 -07:00
2026-01-23 15:49:45 -08:00
2026-07-10 17:39:16 -07:00
2026-04-14 06:55:35 -07:00