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

Goldstein Lyor commented on SSHD-936:
-------------------------------------

{quote}
  If I remove sftp then events flow to ScpTransferEventListener .Is this 
expected?
{quote}
No, and quite impossible under the standard SSH standards.I believe the 
*client* you are using may be "smart" and attempting to use SFTP, and failing 
that use SCP as a fallback. If you control the client then make sure it does 
not attempt to use SFTP. If you do not, then I don't see what you can do - 
other than avoid starting the SFTP on the server side - but then you are 
relying on some empirical knowledge of your client's behavior rather than on a 
standard protocol.

> Track SFTP put successful completion
> ------------------------------------
>
>                 Key: SSHD-936
>                 URL: https://issues.apache.org/jira/browse/SSHD-936
>             Project: MINA SSHD
>          Issue Type: Wish
>    Affects Versions: 2.1.0
>            Reporter: Logan
>            Priority: Major
>         Attachments: sshd-sftp-scp.txt
>
>
> While we can track sftp events with SftpEventListener, there is no event/hook 
> to indicate the sftp put is completed successfully. "Successfully" here means 
> file transfer was done without being terminated/aborted for various reasons 
> (user intentional termination, broken connection because of network 
> error....). I think this was tried in earlier versions through 
> [FileUploadAware|https://github.com/apache/mina-sshd/pull/11/files]. Is this 
> something possible or just a limitation of protocol?
>  
> FYI - close method of SftpEventListener is called for successfully transfers 
> as well as aborted connections.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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

Reply via email to