I use disconnectOnSleep to allow sleep mode.
And I handle the connect and disconnect event by wake() and sleep().
It works fine.
But when vpn connection is established, I watch the video from private network through the VPN.
After a few minutes, I cannot watch the video any more. It looks like that the tunnel provider hang.
I want to know how to solve it;
Additionally, How to allow VPN tunnel run in sleep mode or background, "long task".