summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs
diff options
context:
space:
mode:
authorsalman <salman@tailscale.com>2023-01-17 20:59:03 +0000
committersalman <115096094+s-aia@users.noreply.github.com>2023-01-17 22:59:39 +0000
commiteec734a5787214abb98d5af3421094e56280e6ed (patch)
treeb0aa1e76824f55edb6263e65eeac945a492cf546 /control/controlknobs
parent3eb986fe05836648cd09f91715b5fb33779a28c3 (diff)
downloadtailscale-eec734a5787214abb98d5af3421094e56280e6ed.tar.xz
tailscale-eec734a5787214abb98d5af3421094e56280e6ed.zip
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>
Diffstat (limited to 'control/controlknobs')
0 files changed, 0 insertions, 0 deletions