schwabe / ics-openvpn

OpenVPN for Android
3.25k stars 1.18k forks source link

[NOT BUG REPORT][ASKING FOR HELP]How to perform reconnect periodically #1701

Closed http600 closed 3 months ago

http600 commented 3 months ago

I got PID_ERR replay-window backtrack occurred after several minutes of connection, there are number of reasons, like poor network speed, poor CPU speed or something, but the fact is, it is working perfectly fine in, like 1 or 2 minutes just after reconnected, my solution is to switch to OpenVPN then tap reconnect, just for enjoying several minutes before next error. I came up a stupid but effective idea, to perform reconnect automatically, I found here https://github.com/schwabe/ics-openvpn/blob/4ef3bb1f0b027e86e8ef7a62449c0419b0edaae5/main/src/main/java/de/blinkt/openvpn/activities/DisconnectVPN.java#L87 which is responsible for TAPPING RECONNECT, then I am wondering how to make a timer then run it periodically in background, thanks

http600 commented 3 months ago

OK, it is some problem with and Android TV, I got a TV Box, now I'm running the OpenVPN on the Box, then it seems works now