[ 
https://issues.apache.org/jira/browse/SSHD-131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031100#comment-13031100
 ] 

Taras Puchko commented on SSHD-131:
-----------------------------------

My issue is similar to SSHD-108. Creating an OutputStream for uploading is an 
expensive operation for us, so I don't close the actual stream on 
OutputStream.close() but do that on handleClose(). This works fine for SFTP, 
but does not work for SCP. If I could tell if this is SCP calling 
FileSystemView.getFile I would close SCP uploads on OutputStream.close() - but 
I have (almost) no way to detect that.

In short: I'd like every FileSystemView.getFile call to have a corresponding 
"cleanup" method call.

> ScpCommand should call SshFile.handleClose() when done with a file.
> -------------------------------------------------------------------
>
>                 Key: SSHD-131
>                 URL: https://issues.apache.org/jira/browse/SSHD-131
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 0.5.0
>            Reporter: Taras Puchko
>
> SshFile.handleClose() is useless, since ScpCommand never calls it and an 
> SshFile cannot detect if it's being used by SftpSubsystem or ScpCommand.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to