You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ssh.Dial to establish an ssh connection, if the server network is reachable, but the server fails to send any data to the client because of the server failure, the client hang is left standing, even though the timeout parameter has been set. (See sample code)
Checking the code of x/crypto/ssh shows that the timeout parameter only works in the tcp establishment phase (as shown in the three handshakes), not in the ssh authentication login phase (as shown in the phase outside the three handshakes).
For what reason does the timeout setting here not work in the ssh authentication phase?
What did you expect to see?
The timeout parameter works on the ssh establishment.
What did you see instead?
The timeout parameter only works on tcp establishment.
The text was updated successfully, but these errors were encountered:
xue8
changed the title
x/crypto/ssh: Why does the timeout parameter only work on tcp network connections?
x/crypto/ssh: Why does the timeout parameter only work on tcp network establishment?
Dec 8, 2021
xue8
changed the title
x/crypto/ssh: Why does the timeout parameter only work on tcp network establishment?
x/crypto/ssh: Why does the timeout parameter only work on tcp establishment?
Dec 8, 2021
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/g1fBEI6l9Qp
When using
ssh.Dial
to establish an ssh connection, if the server network is reachable, but the server fails to send any data to the client because of the server failure, the clienthang
is left standing, even though the timeout parameter has been set. (See sample code)Checking the code of
x/crypto/ssh
shows that the timeout parameter only works in the tcp establishment phase (as shown in the three handshakes), not in the ssh authentication login phase (as shown in the phase outside the three handshakes).For what reason does the timeout setting here not work in the ssh authentication phase?
What did you expect to see?
The timeout parameter works on the ssh establishment.
What did you see instead?
The timeout parameter only works on tcp establishment.
The text was updated successfully, but these errors were encountered: