mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 09:15:47 +00:00
8bd08eda2b
* SftpClient: handle the SFTP session being closed by the server If the server closes the SFTP session but keeps the TCP connection open, this currently causes IsConnected to return true, but any operation fails with "the session is not open". SftpClient.IsConnected now also check sftpSession.IsOpen. Connect() and ConnectAsync() were reworked to take into account that the Session may already/still be open, but the SFTP session may not. This is needed so a reconnect works. fixes #843 and #1153 * Always re-create session --------- Co-authored-by: Rob Hague <rob.hague00@gmail.com> Co-authored-by: Igor Milavec <igor.milavec@gmail.com>