Skip to content

Is SftpClient creates new session for each operation? #1014

@Vsevolod-Tsukanov

Description

@Vsevolod-Tsukanov

How much sessions and channels will be created for following code:

SSHClient ssh = new SSHClient();
//... connect
SftpCLient sftp = ssh.newSFTPClient();

sftp.ls("sftp/path/file.txt");
sftp.mkdir("path/to/new/dir");

RemoteFile f = sftp.getSFTPEngine().open("/home/sftp/file1");
InputStream is = f.new RemoteFileInputStream(0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions