sshw disconnect automatically
world520ai opened this issue · 3 comments
world520ai commented
when I comment below, everything is ok.
//go func() {
// for {
// time.Sleep(time.Second * 10)
// client.SendRequest("keepalive@openssh.com", false, nil)
// }
//}()
yinheli commented
This use to implements keepalive features.
reference:
- https://datatracker.ietf.org/doc/draft-ietf-netconf-server-model/06/
- https://www.rfc-editor.org/rfc/rfc8071.txt
- https://gitlab.com/gitlab-org/gitlab-shell/-/merge_requests/622
bug needs to investigate.
world520ai commented
I agree with you, but if client.SendRequest("keepalive@openssh.com", false, nil) could cause the connection terminated? I think this is possible.
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.