J. Baier created VFS-618:
----------------------------

             Summary: sftp consumes channels on each cd when directory does not 
exist
                 Key: VFS-618
                 URL: https://issues.apache.org/jira/browse/VFS-618
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.1
         Environment: all platforms
            Reporter: J. Baier


While resolving a FileObject on an sftp target for a directory that does not 
exist on the target, SftpFileSystem.getChannel() is called and while trying to 
cd to the workingDirectory, an SftpException is thrown but the channel object 
is not released.
This leads to many sftp channels kept opoen on the target system and consumes 
unnecessary resources.
A simple patch of releasing the channel in the caught SftpException in 
SftpFileSystem line 125 would solve this issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to