tailscale/tstest
Jordan Whited 3d1e4f147a
tstest/natlab: fix conn.Close race with conn.ReadFromUDPAddrPort (#16710)
If a conn.Close call raced conn.ReadFromUDPAddrPort before it could
"register" itself as an active read, the conn.ReadFromUDPAddrPort would
never return.

This commit replaces all the activeRead and breakActiveReads machinery
with a channel. These constructs were only depended upon by
SetReadDeadline, and SetReadDeadline was unused.

Updates #16707

Signed-off-by: Jordan Whited <jordan@tailscale.com>
2025-07-29 14:58:47 -07:00
..
archtest all: cleanup unused code, part 1 (#10661) 2023-12-20 14:50:30 -08:00
deptest tstest/deptest: add DepChecker.ExtraEnv option for callers to set 2025-02-24 12:41:45 -08:00
integration tstest/integration/testcontrol: include peer CapMaps in MapResponses 2025-07-21 08:28:10 -07:00
iosdeps feature/capture: move packet capture to feature/*, out of iOS + CLI 2025-01-24 17:52:43 -08:00
jsdeps all: use math/rand/v2 more 2024-06-05 15:24:04 -07:00
mts tstest/mts: add multiple-tailscaled development tool 2025-03-24 10:10:35 -07:00
natlab tstest/natlab: fix conn.Close race with conn.ReadFromUDPAddrPort (#16710) 2025-07-29 14:58:47 -07:00
nettest net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 2025-04-08 10:07:47 -07:00
tailmac tstest/tailmac: add support for mounting host directories in the guest (#13957) 2024-10-29 13:49:51 -04:00
tlstest tstest/tlstest: simplify, don't even bake in any keys 2025-06-19 16:12:32 -07:00
tools go.{mod,sum},tstest/tools,k8s-operator,cmd/k8s-operator: autogenerate CRD API docs (#12884) 2024-07-29 11:50:27 +01:00
allocs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
clock_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
clock.go tstime: add Since method (#8622) 2023-07-14 16:50:17 -04:00
log_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
log.go net/portmapper: fix test flakes from logging after test done 2025-04-25 15:54:05 -07:00
reflect.go net/dns: fix IsZero and Equal methods on OSConfig 2024-09-05 00:05:36 -04:00
resource_test.go tstest: parse goroutines for diff in ResourceCheck (#15619) 2025-04-10 16:01:39 +01:00
resource.go tstest: parse goroutines for diff in ResourceCheck (#15619) 2025-04-10 16:01:39 +01:00
test-wishlist.md wf/firewall: allow link-local multicast for permitted local routes when the killswitch is on on Windows 2024-10-02 18:36:01 -05:00
tstest_test.go tstest: add method to Replace values for tests 2023-03-03 17:02:33 -08:00
tstest.go ipn/{conffile,ipnlocal}: start booting tailscaled from a config file w/ auth key 2023-10-17 07:12:49 -07:00