-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Add a timeout to the sshDialer to prevent indefinite hangs. #23843
Conversation
Removing label |
Labelling this PR as size/M |
@@ -163,11 +163,38 @@ func (d *realSSHDialer) Dial(network, addr string, config *ssh.ClientConfig) (*s | |||
return ssh.Dial(network, addr, config) | |||
} | |||
|
|||
// timeoutDialer wraps an sshDialer with a timeout around Dial(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment either here or up above where it's used with a little more context on why this is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
LGTM |
GCE e2e build/test passed for commit 0f113d3bdd17c156c94d708b1f4994e11e73fb16. |
LGTM. |
GCE e2e build/test passed for commit cde4f6d. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit cde4f6d. |
Automatic merge from submit-queue |
…43-upstream-release-1.2 Automated cherry pick of #23843
Commit found in the "release-1.2" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…ck-of-#23843-upstream-release-1.2 Automated cherry pick of kubernetes#23843
…ck-of-#23843-upstream-release-1.2 Automated cherry pick of kubernetes#23843
Prevents the SSH Dialer from hanging forever. Fixes a problem where SSH Tunnels get stuck trying to open.
Addresses #23835.