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 c467ed0b62 wgengine/wgcfg: always close io.Pipe
In DeviceConfig, we did not close r after calling FromUAPI.
If FromUAPI returned early due to an error, then it might
not have read all the data that IpcGetOperation wanted to write.
As a result, IpcGetOperation could hang, as in #3220.

We were also closing the wrong end of the pipe after IpcSetOperation
in ReconfigDevice.

To ensure that we get all available information to diagnose
such a situation, include all errors anytime something goes wrong.

This should fix the immediate crashing problem in #3220.
We'll then need to figure out why IpcGetOperation was failing.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
3 years ago
..
bench types/netmap: use key.NodePublic instead of tailcfg.NodeKey. 3 years ago
filter all: use testingutil.MinAllocsPerRun 3 years ago
magicsock tailcfg: use key.NodePublic in wire protocol types. 3 years ago
monitor wgengine/monitor: ignore ipsec link monitor events on iOS/macOS 3 years ago
netstack cmd/tailscaled, wgengine/netstack: always wire up netstack 3 years ago
router util/multierr: new package 3 years ago
wgcfg wgengine/wgcfg: always close io.Pipe 3 years ago
wglog wgengine/wgcfg: convert to use new node key type. 3 years ago
winnet wgengine/winnet: don't build on non-windows 4 years ago
mem_ios.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
pendopen.go tailcfg: use key.NodePublic in wire protocol types. 3 years ago
userspace.go tailcfg: use key.NodePublic in wire protocol types. 3 years ago
userspace_ext_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 4 years ago
userspace_test.go tailcfg: use key.NodePublic in wire protocol types. 3 years ago
watchdog.go wgengine: randomize client port if netmap says to 3 years ago
watchdog_test.go all: close fake userspace engines when tests complete 3 years ago
wgengine.go wgengine: randomize client port if netmap says to 3 years ago