tailscale/wgengine
Denton Gentry def650b3e8 wgengine/magicsock: don't Rebind after STUN error if closed.
https://github.com/tailscale/tailscale/pull/3014 added a
rebind on STUN failure, which means there can now be a
tailscale.com/wgengine/magicsock.(*RebindingUDPConn).ReadFromNetaddr
in progress at the end of the test waiting for a STUN
response which will never arrive.

This causes a test flake due to the resource leak in those
cases where the Conn decided to rebind. For whatever reason,
it mostly flakes with Windows.

If the Conn is closed, don't Rebind after a send error.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-10-16 17:22:13 -07:00
..
bench all: fix spelling mistakes 2021-10-12 21:23:14 -07:00
filter cmd/cloner: add Clone context to regen struct assignments 2021-09-17 16:46:08 -07:00
magicsock wgengine/magicsock: don't Rebind after STUN error if closed. 2021-10-16 17:22:13 -07:00
monitor wgengine/monitor: ignore ipsec link monitor events on iOS/macOS 2021-09-27 20:45:51 -07:00
netstack wgengine/netstack: include DNS.ExtraRecords in DNSMap 2021-09-28 10:01:36 -07:00
router wgengine/router: ignore Linux ip route error adding dup route 2021-10-14 14:00:45 -07:00
wgcfg cmd/cloner: add Clone context to regen struct assignments 2021-09-17 16:46:08 -07:00
wglog wgengine/wglog: Fix docstring on wireguardGoString to match args 2021-09-05 15:52:16 -07:00
winnet wgengine/winnet: don't build on non-windows 2021-02-09 21:09:24 -08:00
mem_ios.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
pendopen.go wgengine/magicsock: start removing endpointForDiscoKey 2021-10-15 16:44:02 -07:00
userspace_ext_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 2021-05-25 13:18:21 -07:00
userspace_test.go all: close fake userspace engines when tests complete 2021-09-15 15:31:51 -07:00
userspace.go magicsock: if STUN failed to send before, rebind before STUNning again. 2021-10-08 02:17:09 +09:00
watchdog_test.go all: close fake userspace engines when tests complete 2021-09-15 15:31:51 -07:00
watchdog.go wgengine: randomize client port if netmap says to 2021-06-23 08:51:37 -07:00
wgengine.go wgengine: randomize client port if netmap says to 2021-06-23 08:51:37 -07:00