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
Maisem Ali 6fecc16c3b ipn/ipnlocal: do not process old status messages received out of order
When `setWgengineStatus` is invoked concurrently from multiple
goroutines, it is possible that the call invoked with a newer status is
processed before a call with an older status. e.g. a status that has
endpoints might be followed by a status without endpoints. This causes
unnecessary work in the engine and can result in packet loss.

This patch adds an `AsOf time.Time` field to the status to specifiy when the
status was calculated, which later allows `setWgengineStatus` to ignore
any status messages it receives that are older than the one it has
already processed.

Updates tailscale/corp#2579

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2 years ago
..
bench types/netmap: use key.NodePublic instead of tailcfg.NodeKey. 3 years ago
filter all: use strings.Cut even more 2 years ago
magicsock all: use strings.Cut even more 2 years ago
monitor all: use any instead of interface{} 2 years ago
netstack wgengine: inject packetbuffers rather than bytes (#4220) 2 years ago
router all: use any instead of interface{} 2 years ago
wgcfg all: use any instead of interface{} 2 years ago
wglog all: use any instead of interface{} 2 years ago
winnet all: gofmt -w -s (simplify) tests 2 years ago
mem_ios.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 3 years ago
pendopen.go envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 2 years ago
userspace.go ipn/ipnlocal: do not process old status messages received out of order 2 years ago
userspace_ext_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 3 years ago
userspace_test.go all: gofmt -w -s (simplify) tests 2 years ago
watchdog.go all: use any instead of interface{} 2 years ago
watchdog_test.go all: use any instead of interface{} 2 years ago
wgengine.go ipn/ipnlocal: do not process old status messages received out of order 2 years ago