tomaswolf opened a new pull request, #295:
URL: https://github.com/apache/mina-sshd/pull/295

   SftpFileSystem.getClient() returns reference-counted wrapper instances that 
need to be closed to avoid a memory leak via ThreadLocals. Make sure that the 
streams returned by SftpFileSystemProvider.newInputStream() and 
newOutputStream() do close the client used by ensuring that the streams 
returned by SftpFileSystem.read() and write() do so. Also fix 
SftpFileSystemProvider.copy() to close the SftpClient it uses.
   
   SftpFileSystemProvider.newDirectoryStream() and newFileChannel() already do 
close the SftpClient used.
   
   Fix the SftpFileSystemTest to properly close SftpClients and 
DirectoryStreams.
   
   Fixes #294.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to