question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VPN auto-disconnects when device goes to sleep/auto-lock

See original GitHub issue

Description

VPN auto-disconnects when device goes to sleep/auto-lock

Test plan / Steps to Reproduce

  1. Install VPN profile on macOS and auto-connect to a preferred location
  2. Set device to turn off display after half hour so it goes into lock screen
  3. Keep the device idle after display turns off (say half hour)
  4. Unlock device

Actual result:

System isn’t connected to VPN anymore VPN auto-disconnects when device goes to sleep/auto-lock

Expected result:

Should not disconnect from VPN

Reproduces how often:

Easy

Brave version (brave://version info)

Brave 1.41.14 Chromium: 102.0.5005.61 (Official Build) nightly (arm64)
Revision 0e59bcc00cc4985ce39ad31c150065f159d95ad3-refs/branch-heads/5005@{#819}
OS macOS Version 12.4 (Build 21F79)

Version/Channel Information:

  • Can you reproduce this issue with the current release? NA
  • Can you reproduce this issue with the beta channel? NA
  • Can you reproduce this issue with the nightly channel? Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? NA
  • Does the issue resolve itself when disabling Brave Rewards? NA
  • Is the issue reproducible on the latest version of Chrome? NA

Miscellaneous Information:

cc: @brave/legacy_qa @bsclifton @simonhong @spylogsster

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
srirambvcommented, Aug 18, 2022

Just adding a note that its working fine on the same profile that was used to report the issue. VPN isn’t disconnected when logged back in after the device goes to sleep/auto-lock

0reactions
MadhaviSeelamcommented, Aug 18, 2022

Verification PASSED using

Brave | 1.43.73 Chromium: 104.0.5112.81 (Official Build) beta (64-bit)
-- | --
Revision | 5b7b76419d50f583022568b6764b630f6ddc9208-refs/branch-heads/5112@{#1309}
OS | Windows 11 Version 21H2 (Build 22000.856)

Reproduced the issue in 1.41.14

Ex1 Ex2
<image width="950" alt="image" src="https://user-images.githubusercontent.com/98358127/185282557-866bbe25-13e4-464c-83e2-c0c7a02f8c44.png"> <image width="950" alt="image" src="https://user-images.githubusercontent.com/98358127/185282581-01ff63ff-b5e2-4afb-8734-994e045fa1a5.png">
  1. installed 1.43.73
  2. launched Brave
  3. opened brave://flags/
  4. toggled Enable experimental Brave VPN to Enabled
  5. toggled Enable experimental SKU SDK to Enabled
  6. restarted Brave
  7. loaded account.bravesoftware.com (staging)
  8. enter credentials from 1Password
  9. enter a unique test email address (e.g. vpn-test-0823@mailinator.com) and click Get login link
  10. clicked on the link in the email
  11. clicked on Browse plans
  12. scrolled down and clicked on Buy now for Brave VPN
  13. completed the Stripe checkout
  14. connected to VPN
  15. configured to put the device to sleep and turn off the display after for 30 minutes in settings
  16. waited 30 minutes to lock the screen and stayed idle another 30 minutes
  17. unlocked my machine
  18. checked VPN-connection status

Confirmed still connected

Step 15-16 Results
<image width="950" alt="image" src="https://user-images.githubusercontent.com/98358127/185281966-1876be28-3734-46d1-b429-ee6bd50da34f.png"> <image width="950" alt="image" src="https://user-images.githubusercontent.com/98358127/185282157-4b9d50a1-4de8-468d-98c9-f5950b656cb2.png">
Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: iPhone VPN Disconnects on Sleep or Auto-Lock
One of the biggest problems on iOS is when your iPhone VPN disconnects when the device goes to sleep or enters into auto-lock....
Read more >
Cisco VPN disconnects when the user lock the screen and idle
Still the issue occurs. Sleep is updated as Never in power options. Cisco VPN has 300 minutes idle time to auto disconnect.
Read more >
Why Does My VPN Disconnect When I Lock My Screen?
Viscosity's Sleep technology automatically disconnects VPN connections when you go to sleep on your computer. This ensures that if the VPN ...
Read more >
VPN disconnects when iPhone goes into auto-lock
If you connect the VPN and return to the home screen and allow the phone to lock or lock it manually it will...
Read more >
Always On VPN Connection Issues After Sleep or Hibernate
Likely the single most common complaint about Windows 10 Always On VPN is that device tunnel or user tunnel VPN connections fail to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found