sshw
sshw copied to clipboard
sshw disconnect automatically
when I comment below, everything is ok. //go func() { // for { // time.Sleep(time.Second * 10) // client.SendRequest("[email protected]", false, nil) // } //}()
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.
I agree with you, but if client.SendRequest("[email protected]", false, nil) could cause the connection terminated? I think this is possible.
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.