You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "tomaswolf (via GitHub)" <gi...@apache.org> on 2023/05/20 17:29:29 UTC

[GitHub] [mina-sshd] tomaswolf opened a new pull request, #377: [SSHD-1310] SftpFileSystem: do not close user sessions

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

   A SftpFileSystem can be obtained in two ways:
   
   1. Via FileSystems.newFileSystem()
   2. Via SftpClientFactory.instance().createSftpFileSystem(ClientSession)
   
   In the first case, the SftpFileSystemProvider automatically creates a ClientSession, and that session must be closed when the file system closes.
   
   In the second case, user code already has a ClientSession and wants to run an SftpFileSystem within. In this case, the session _must not_ be closed when the file system closes.
   
   Add a session attribute that can be set on a ClientSession to tell the SftpFileSystem whether it owns the ClientSession. The SftpFileSystem will close only owned sessions.
   
   Also add a SessionListener to ensure the file system is closed when the session closes.
   
   Bug: https://issues.apache.org/jira/browse/SSHD-1310


-- 
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-unsubscribe@mina.apache.org

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


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


[GitHub] [mina-sshd] tomaswolf merged pull request #377: [SSHD-1310] SftpFileSystem: do not close user sessions

Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf merged PR #377:
URL: https://github.com/apache/mina-sshd/pull/377


-- 
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-unsubscribe@mina.apache.org

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


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