-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
Make Paramiko backend try to reconnect if connection became closed #66
Make Paramiko backend try to reconnect if connection became closed #66
Conversation
Hi, thanks for this PR. I just wonder what the cost of calling |
Exception occurs in different place. I think the cost is not that big to worry about it. |
Offtop: And I can't find a solution, maybe you know, how to fix it? |
For example, user might want host to be reverted to a pristine state before each test run. In that case, the backend would fail, because before this patch it was simply reused the old closed connection.
Yes, pbr require a git repo or a sdist (as generated by python setup.py sdist) to get package version.
|
@philpep, helped! thx 👍 |
@AndrewPashkin what's your usecase and what version of paramiko are you using ? I cannot reproduce the issue (instantiate paramiko connection, kill the established connection with conntrack and reuse the paramiko connection), seems paramiko handle this already (version 1.16.0 here). |
Ok with tcpkill I get this:
|
I'm definitely not fan of calling |
@philpep, my use case is that I'm trying to use Vagrant for testing SaltStack formulas and before each test run, my test suite reverts VM to a defined snapshot. After each rollback, SSH connection gets closed. |
Closed in flavor of #71 |
For example, user might want host to be reverted to a pristine state
before each test run. In that case, the backend would fail, because
before this patch it was simply reused the old closed connection.