skycoin / skywire

Skywire Node implementation
73 stars 45 forks source link

Add timeout flag for `skywire-cli vpn start` and `skywire-cli proxy start` #1714

Closed 0pcom closed 5 months ago

0pcom commented 6 months ago

If one attempts to start either the proxy or vpn client, I think there is no timeout on that operation and the visor will try to start it forever, even on continuous failed attempts to make a transport.

Instead of having to control the process via external means (i.e. running skywire-cli via timeout on linux) we should simply provide a flag so that users can specify a timeout interval.

This is mostly a consideration for testing or advanced users. For our purposes, the timeout interval specified via flag should be an integer representing time in seconds.