Skip to content

chore: handle waking from device sleep #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 20, 2025
Merged

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Feb 14, 2025

Depends on coder/coder#16598.
Reverts #43.

Whilst everything seems to recover okay tailnet wise when waking from sleep currently, the tunnel will still miss workspace/peer updates during the sleep, causing the workspace state in the UI to be out of sync with reality.

To handle this, we'll teardown the tunnel on sleep, and bring it back up on wake.

Fixing the issue in coder/coder also revealed that the error encountered when toggling the VPN on and off quickly was another symptom, and so this change reverts the code that prevents toggling the VPN on and off quickly, as it now works flawlessly.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson changed the title chore: handle waking from device sleep chore: disconnect VPN on sleep Feb 14, 2025
@matifali

This comment was marked as outdated.

@ethanndickson

This comment was marked as outdated.

@ethanndickson ethanndickson changed the title chore: disconnect VPN on sleep chore: handle waking from device sleep Feb 18, 2025
@ethanndickson ethanndickson force-pushed the ethan/handle-wake branch 4 times, most recently from f66f2d8 to ac93c9c Compare February 19, 2025 03:38
@ethanndickson ethanndickson marked this pull request as ready for review February 19, 2025 10:14
Copy link
Member Author

ethanndickson commented Feb 20, 2025

Merge activity

  • Feb 19, 9:23 PM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 19, 9:23 PM EST: A user merged this pull request with Graphite.

@ethanndickson ethanndickson merged commit f33afbd into main Feb 20, 2025
4 checks passed
@matifali matifali linked an issue Feb 20, 2025 that may be closed by this pull request
@ThomasK33 ThomasK33 deleted the ethan/handle-wake branch February 25, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gracefully handle device sleep (macOS)
3 participants