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
Josh Bleecher Snyder 744de615f1 health, wgenegine: fix receive func health checks for the fourth time
The old implementation knew too much about how wireguard-go worked.
As a result, it missed genuine problems that occurred due to unrelated bugs.

This fourth attempt to fix the health checks takes a black box approach.
A receive func is healthy if one (or both) of these conditions holds:

* It is currently running and blocked.
* It has been executed recently.

The second condition is required because receive functions
are not continuously executing. wireguard-go calls them and then
processes their results before calling them again.

There is a theoretical false positive if wireguard-go go takes
longer than one minute to process the results of a receive func execution.
If that happens, we have other problems.

Updates #1790

Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
3 years ago
..
bench wgengine/bench: improved rate selection. 3 years ago
filter net/packet, wgengine/{filter,tstun}: add TSMP ping 3 years ago
magicsock health, wgenegine: fix receive func health checks for the fourth time 3 years ago
monitor wgengine/monitor: reduce Linux log spam on down 3 years ago
netstack wgengine/netstack: log error when acceptUDP fails 3 years ago
router wgengine/router{win}: ignore broadcast routes added by Windows when removing routes. 3 years ago
wgcfg wgengine/wgcfg/nmcfg: consolidate exit node log lines 3 years ago
wglog wgengine/wglog: allow wireguard-go receive routines to log 3 years ago
winnet wgengine/winnet: don't build on non-windows 3 years ago
pendopen.go wgengine: quiet connection failure diagnostics for exit nodes 3 years ago
userspace.go net/tstun: split TUN events channel into up/down and MTU 3 years ago
userspace_ext_test.go cmd/tailscaled, wgengine{,/netstack}: add netstack hybrid mode, add to Windows 3 years ago
userspace_test.go cmd/tailscaled, wgengine{,/netstack}: add netstack hybrid mode, add to Windows 3 years ago
watchdog.go wgengine: take in dns.Config, split out to resolver.Config and dns.OSConfig. 3 years ago
watchdog_test.go wgengine: extend TestWatchdog timeout on macOS 3 years ago
wgengine.go tailcfg: add Endpoint, EndpointType, MapRequest.EndpointType 3 years ago