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

Feature Request: Automatically re-establish SSH tunnel on "Connection reset by peer" #4

Open
waterlink opened this issue Dec 11, 2016 · 2 comments

Comments

@waterlink
Copy link
Contributor

Currently, given sufficient amount of time, or after workstation has gone to sleep, the SSH tunnel is disconnected. When this happens, we have to re-run cf mysql <name> command.

@waterlink
Copy link
Contributor Author

As discussed off-line, we shouldn't normally do that, because users might pipe script input into this command and then re-establishing a connection silently might be a bad idea.

I think, we ought to be able to detect if input is piped or not. If we can, then we can have a mode of operation: interactive or non-interactive. This should be sufficient to resolve this problem. I will take a look if that is something possible and simple to do.

@waterlink
Copy link
Contributor Author

Yes. It is possible to detect if the process is running in the interactive or pipe mode. PoC of such detection mechanism can be found in this 'git compare': master...waterlink:poc-interactivity-detection

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

1 participant