tailscale/wgengine
Josh Bleecher Snyder c7e5ab8094 wgengine/magicsock: retry and re-send packets in TestTwoDevicePing
When a handshake race occurs, a queued data packet can get lost.
TestTwoDevicePing expected that the very first data packet would arrive.
This caused occasional flakes.

Change TestTwoDevicePing to repeatedly re-send packets
and succeed when one of them makes it through.

This is acceptable (vs making WireGuard not drop the packets)
because this only affects communication with extremely old clients.
And those extremely old clients will eventually connect,
because the kernel will retry sends on timeout.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-02-12 14:18:58 -08:00
..
filter wgengine/filter: add a Clone method. 2021-01-22 17:31:37 -08:00
magicsock wgengine/magicsock: retry and re-send packets in TestTwoDevicePing 2021-02-12 14:18:58 -08:00
monitor wgengine/monitor: close closeHandle 2021-01-07 20:18:02 -08:00
netstack types/netmap: split controlclient.NetworkMap off into its own leaf package 2021-02-05 16:18:52 -08:00
router wgengine/router: fix BSD router to support multiple local addrs, IPv6 2021-02-11 19:13:03 -08:00
tsdns tstest: simplify goroutine leak tests 2021-02-03 13:06:40 -08:00
tstun wgengine/tstun: reply to MagicDNS pings 2021-02-11 11:55:38 -08:00
wgcfg types/netmap: split controlclient.NetworkMap off into its own leaf package 2021-02-05 16:18:52 -08:00
wglog wgengine: adapt to wireguard-go changes 2021-02-04 15:15:33 -08:00
winnet wgengine/winnet: don't build on non-windows 2021-02-09 21:09:24 -08:00
pendopen.go ipn: split LocalBackend off into new ipn/ipnlocal package 2021-02-04 14:04:23 -08:00
userspace_test.go all: move wgcfg from wireguard-go 2021-01-29 12:52:56 -08:00
userspace.go wgengine: remove IpcGetOperation filter 2021-02-08 20:22:55 -08:00
watchdog_test.go cmd/tailscaled, wgengine/netstack: add start of gvisor userspace netstack work 2021-01-11 09:31:14 -08:00
watchdog.go types/netmap: split controlclient.NetworkMap off into its own leaf package 2021-02-05 16:18:52 -08:00
wgengine.go types/netmap: split controlclient.NetworkMap off into its own leaf package 2021-02-05 16:18:52 -08:00