skycoin / skywire

Skywire Node implementation
72 stars 45 forks source link

Reconnect logic for VPN & proxy clients #1802

Open 0pcom opened 7 months ago

0pcom commented 7 months ago

Sometimes the proxy or vpn client will get disconnected for a moment, at which point the client will simply stop.

However, if one attempts to establish the connection again, often it is possible to quickly re-establish the transport and the connection to the proxy or vpn server by simply attempting to start the app again.

We should consider retry logic for such instances ; configurable via flag and / or a field in the visor config for that app. ... Additionally, sometimes when starting the proxy or VPN clients, they are simply not going to start. In this instance, there is no way to cancel the retry loop that the visor gets stuck in.

0pcom commented 4 months ago

to address this issue I suggest the following

the retry loop is encountered when attempting to establish a connection that isn't going to work. That needs a global setting, I think, possibly a config setting. Because it might be difficult to insert the logic otherwise.

mrpalide commented 4 months ago

List of tasks for handle this issue: