mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 02:31:18 -08:00
Sinceedcc2c94, tailscaled closes the watch when a subscriber falls behind. That doesn't work well for GUIs where closing the watch has side effects. On Windows, the last client disconnecting can reset the backend state unless unattended or always-on mode is enabled. On Android and Apple platforms, nothing restarts a watch that ended this way, so the UI silently stops updating. Add ipn.NotifySuspendWhenBehind. A watcher that sets it stays connected when it falls behind, but gets a Notify with Suspended set and nothing else until the client resumes the session via the new resume-ipn-bus LocalAPI endpoint or LocalBackend.ResumeWatchNotifications. Resuming replays the initial Notify and new notifications follow from there. Updates tailscale/corp#51067 Updates tailscale/corp#50256 Updates tailscale/corp#50907 Change-Id: Idf66780ebb37f86d5be636b7a84ca43ec15a9471 Signed-off-by: Nick Khyl <[email protected]> (cherry picked from commitb706df603a)