nnjun/SimpleOpenVpn-Android

Unable to reconnect

Closed this issue · 9 comments

Hello Milk,

I have an issue regarding the reconnection.
If you are unable to connect to internet (for example you don't have enough balance to do so)
The VPN doesn't reconnect, can we make the VPN try and try and try to reconnect until it does?

Thanks

nnjun commented

You mean to connect without a network, and it won't be retried all the time?

nnjun commented

When I test, I find that I disconnect from the network, and he will prompt "Waition for usable network"

nnjun commented

I simulated your scenario and found that the waiting time increased with the number of retries. When I waited for a long time, I saw the prompt "waition 256 seconds between connection attempt", but he was still working. I may need to shorten this time.

nnjun commented

Friends, I have work to do. In addition, you said there are many bugs, please let me know. I'll take my spare time to solve it.

How can you solve the problems if going to 'closed' all the issue here?
Again, the wrapper can't handle the reconnection properly, it hangs the UI and just closes instead of reconnecting. But I guess you can't replicate it.

Well, at least you got a wrapper that works only and solely for you and it doesn't for us. LOL