Closed wiz closed 7 years ago
If OpenVPN exits after X seconds, it shouldn't be considered an immediate failure, and the current behavior of re-launching it forever is fine.
However, if OpenVPN immediately fails to launch (ie. returns within <1 seconds), this results in a ddos of the local host.
Test case on MacOS:
Infinite and spammy reconnections fixed by introducing a reconnection limit, but a better fix will come once we refactor the daemon connection state next.
https://github.com/cypherpunkengineering/cypherpunk-vpn-desktop/commit/1e37a178e7db4b3ea7fa6b0c56e7c13a49df04a8
If OpenVPN exits after X seconds, it shouldn't be considered an immediate failure, and the current behavior of re-launching it forever is fine.
However, if OpenVPN immediately fails to launch (ie. returns within <1 seconds), this results in a ddos of the local host.
Test case on MacOS: