Description
SftpFileSystem.close() method, closes the session as well.
We expect only the sftpfilesystem channel to be closed. Since we use the same session for multiple operations (exec command, SFTP download & upload, SFTP client list directory).
SftpFileSystem.java
public void close() throws IOException {
if (this.isOpen()) {
SftpFileSystemProvider provider = this.provider();
String fsId = this.getId();
SftpFileSystem fs = provider.removeFileSystem(fsId);
ClientSession session = this.getClientSession();
session.close(true);
if (fs != null && fs != this)
}
}
can you please check and let us know, if this can be fixed ?
Attachments
Issue Links
- links to