Arkanosis / rssht

Reverse SSH tunnel, with optional SSH over HTTP
https://rssht.readthedocs.io/
ISC License
17 stars 4 forks source link

Fast reconnection after being disconnected #7

Open Arkanosis opened 8 years ago

Arkanosis commented 8 years ago

Add a new flag for the number of fast reconnection attempts (default… maybe 3 ?) that ignore the reconnection delay if the previous connection has been successful.

This is to avoid having to wait for minutes in case the connection has been lost for a few seconds only (this typically happens quite often when using a reverse SSH tunnel over a HTTP proxy).

Arkanosis commented 8 years ago

Even better: the -n flag should accept a comma-separated list of delays for connection attempts.

For example -n 10,30,300 means that the second attempt happens after 10 seconds, the third after 30 seconds and subsequent attempts are separated with 300 seconds.