x/crypto/ssh: Dial function with ClientConfig Timeout got stuck #46536
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I dont know.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
trying to connect to ssh server that is currently not available with a timeout of 5 minutes.
What did you expect to see?
timeout of the connection attempt after the 5 minutes delay is exceeded.
What did you see instead?
the goroutine got stuck.
here an extract of the core dump:
In my case, the ssh port of the server was accessible (telnet OK). But, due to cpu overload, the ssh connection (with ssh command) did not succeed.
In the core dump, it seems it got stuck in the readVersion function.
I think the Timeout property of ssh.ClientConfig pass to the Dial function should be use un the function NewClientConn to prevent this problem.
PS: it is pretty hard to reproduce on my side...
Lindmin.
The text was updated successfully, but these errors were encountered: