Thank you! Your module is very helpful, and it saved my time, but there is an improvement that I should say...
Opened this issue · 1 comments
nth347 commented
I don't see any mechanism for checking if the connection was successfully established, please tell me if there is one
elliotchance commented
That's not a trivial answer because it doesn't just depend on when the SSH tunnel is open but also depends on the connection being ready by whatever service you're connecting to - which is something this library can't effectively know about.
The only real way to know a connection is ready is by using it. You may also find that some backends have a ping-style check or heartbeat that helps with this. Otherwise you could use your own retry mechanism to probe the connection on sensible intervals.