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
Brad Fitzpatrick 387e83c8fe wgengine/magicsock: fix Conn.Rebind race that let ErrClosed errors be read
There was a logical race where Conn.Rebind could acquire the
RebindingUDPConn mutex, close the connection, fail to rebind, release
the mutex, and then because the mutex was no longer held, ReceiveIPv4
wouldn't retry reads that failed with net.ErrClosed, letting that
error back to wireguard-go, which would then stop running that receive
IP goroutine.

Instead, keep the RebindingUDPConn mutex held for the entirety of the
replacement in all cases.

Updates tailscale/corp#1289

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
discopingpurpose_string.go wgengine/magicsock: make discoPingPurpose a stringer 4 years ago
legacy.go wgengine/magicsock: unify on netaddr types in addrSet 3 years ago
magicsock.go wgengine/magicsock: fix Conn.Rebind race that let ErrClosed errors be read 3 years ago
magicsock_test.go wgengine/magicsock: fix Conn.Rebind race that let ErrClosed errors be read 3 years ago