You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "J. Baier (JIRA)" <ji...@apache.org> on 2016/07/20 08:31:20 UTC
[jira] [Created] (VFS-618) sftp consumes channels on each cd when
directory does not exist
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)