Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thank you! Your module is very helpful, and it saved my time, but there is an improvement that I should say... #21

Open
nth347 opened this issue Jan 14, 2024 · 1 comment

Comments

@nth347
Copy link

nth347 commented Jan 14, 2024

I don't see any mechanism for checking if the connection was successfully established, please tell me if there is one

@elliotchance
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants