You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
bench all: fix spelling mistakes 4 years ago
filter cmd/cloner: add Clone context to regen struct assignments 4 years ago
magicsock wgengine/magicsock: don't Rebind after STUN error if closed. 4 years ago
monitor wgengine/monitor: ignore ipsec link monitor events on iOS/macOS 4 years ago
netstack wgengine/netstack: include DNS.ExtraRecords in DNSMap 4 years ago
router wgengine/router: ignore Linux ip route error adding dup route 4 years ago
wgcfg cmd/cloner: add Clone context to regen struct assignments 4 years ago
wglog wgengine/wglog: Fix docstring on wireguardGoString to match args 4 years ago
winnet wgengine/winnet: don't build on non-windows 5 years ago
mem_ios.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 5 years ago
pendopen.go wgengine/magicsock: start removing endpointForDiscoKey 4 years ago
userspace.go magicsock: if STUN failed to send before, rebind before STUNning again. 4 years ago
userspace_ext_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 5 years ago
userspace_test.go all: close fake userspace engines when tests complete 4 years ago
watchdog.go wgengine: randomize client port if netmap says to 5 years ago
watchdog_test.go all: close fake userspace engines when tests complete 4 years ago
wgengine.go wgengine: randomize client port if netmap says to 5 years ago