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
Mihai Parparita bdc45b9066 wgengine/magicsock: fix panic when rebinding fails
We would replace the existing real implementation of nettype.PacketConn
with a blockForeverConn, but that violates the contract of atomic.Value
(where the type cannot change). Fix by switching to a pointer value
(atomic.Pointer[nettype.PacketConn]).

A longstanding issue, but became more prevalent when we started binding
connections to interfaces on macOS and iOS (#6566), which could lead to
the bind call failing if the interface was no longer available.

Fixes #6641

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2 years ago
..
debughttp.go wgengine/magicsock: fix panic in http debug server 2 years ago
debugknobs.go all: remove old +build tags 2 years ago
debugknobs_stubs.go all: remove old +build tags 2 years ago
discopingpurpose_string.go wgengine/magicsock: make discoPingPurpose a stringer 4 years ago
magicsock.go wgengine/magicsock: fix panic when rebinding fails 2 years ago
magicsock_default.go all: remove old +build tags 2 years ago
magicsock_linux.go wgengine/magicsock: set UDP socket buffer sizes to 7MB 2 years ago
magicsock_test.go wgengine/magicsock: fix panic when rebinding fails 2 years ago
magicsock_unix_test.go all: remove old +build tags 2 years ago
pathfinder.go wgengine/magicsock: set up pathfinder (#5994) 2 years ago