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/ipn
salman eec734a578 ipn/{ipnlocal,localapi}: ensure watcher is installed before /watch-ipn-bus/ responds with 200
This change delays the first flush in the /watch-ipn-bus/ handler
until after the watcher has been successfully installed on the IPN
bus. It does this by adding a new onWatchAdded callback to
LocalBackend.WatchNotifications().

Without this, the endpoint returns a 200 almost immediatly, and
only then installs a watcher for IPN events.  This means there's a
small window where events could be missed by clients after calling
WatchIPNBus().

Fixes tailscale/corp#8594.

Signed-off-by: salman <salman@tailscale.com>
1 year ago
..
ipnauth all: use named pipes on windows 2 years ago
ipnlocal ipn/{ipnlocal,localapi}: ensure watcher is installed before /watch-ipn-bus/ responds with 200 1 year ago
ipnserver ipn/ipnserver: propagate http.Serve error 1 year ago
ipnstate ipn/ipnlocal: add Expired to PeerStatus 1 year ago
localapi ipn/{ipnlocal,localapi}: ensure watcher is installed before /watch-ipn-bus/ responds with 200 1 year ago
policy ipn/policy: treat DNS service as interesting so it's not filtered out 3 years ago
store all: remove old +build tags 2 years ago
backend.go cmd/tailscale/cli: redact private key in debug netmap output by default 1 year ago
doc.go ipn: add WebServerConfig, add views 2 years ago
fake_test.go ipn/ipnlocal: add support for multiple user profiles 2 years ago
ipn_clone.go ipn,types/persist: add DisallowedTKAStateIDs, refactor as view type 2 years ago
ipn_view.go ipn,types/persist: add DisallowedTKAStateIDs, refactor as view type 2 years ago
prefs.go ipn: update comments that refer to Options.Prefs 2 years ago
prefs_test.go ipn: add ability to name profiles 2 years ago
serve.go cmd/tailscale/cli, ipn/localapi: add funnel status to status command (#6402) 2 years ago
store.go cmd/tailscale/cli, ipn: move serve CLI funcs on to ServeConfig (#6401) 2 years ago