-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net_ssh: Handle SSH session termination more cleanly and sanely.
Previously, ssh_channel_close would sometimes hang when called at session termination. To work around this, preliminary changes were made to set the channel to nonblocking mode and try to cleanly end the session using SSH EOF. This can lead to busy loops if done simplistically, since the client may not end the session cleanly. As a compromise, try to do so if we can, but use a loose loop and give up after a minute or so. LBBS-57 #close
- Loading branch information
1 parent
78c1622
commit 8c65792
Showing
1 changed file
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters