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/magicsock
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>
4 years ago
..
discopingpurpose_string.go wgengine/magicsock: make discoPingPurpose a stringer 4 years ago
legacy.go wgengine/magicsock: unify on netaddr types in addrSet 4 years ago
magicsock.go wgengine/magicsock: reduce log spam during tests 4 years ago
magicsock_test.go wgengine/magicsock: retry and re-send packets in TestTwoDevicePing 4 years ago