cypherpunkengineering / cypherpunk-vpn-desktop

Cypherpunk Privacy VPN app for Windows / MacOS / Linux
Other
0 stars 0 forks source link

Improve connection handling #59

Open nikuhodai opened 7 years ago

nikuhodai commented 7 years ago

Ongoing task from earlier to refactor and clean up the connection handling of the daemon.

Make well-defined states for the logical connection, separate from individual OpenVPN process states, so that the client can recognize and display corner case states such as slow or interrupted connections. Never give up trying to reconnect, but reduce the frequency of attempts after a while.

Corner cases to keep an eye on in the future:

Both of these are mitigated by introducing the concept of 'slow mode', making connection attempts less frequently if a certain time has passed without a successful connection.