You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Shashank (JIRA)" <ji...@apache.org> on 2016/06/09 12:22:21 UTC

[jira] [Issue Comment Deleted] (SSHD-108) Add upload monitoring to sftp

     [ https://issues.apache.org/jira/browse/SSHD-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shashank updated SSHD-108:
--------------------------
    Comment: was deleted

(was: Sorry for not making myself clear.

In my application I am not accessing any sockets. I was just debugging the functionality in the lib and observed this behavior.

In general whenever a request reaches SFTP server, a socket connection is established. Through this socket connection initially keys information will be read from the client to SFTP server and then authentication information will be read to proceeds further on the connection request.

In my scenario, whenever keys information is read and tries to read authentication information, nothing is being read from the socket and connection gets terminated after ~2mins with error message as "IOException: The specified network name is no longer available." I hope this error message is nothing to do with socket unable to read authentication information.)

> Add upload monitoring to sftp
> -----------------------------
>
>                 Key: SSHD-108
>                 URL: https://issues.apache.org/jira/browse/SSHD-108
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 0.5.0
>            Reporter: Richard Evans
>            Assignee: Goldstein Lyor
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> We have sshd integrated into our application and sftp is working fine.  One of the requirements is to initiate some action when a file upload it complete.  I have made this work by implementing handleClose in my SshFile implementation and performing the action if createOutputStream had been called previously.  This seems a bit ugly though; it might be nicer if there was some plug in mechanism to monitor file transfers.
> Ideally the monitor would be able to distinguish between a successful upload and a cancelled one (via ctrl-c at the client), but a quick perusal of the sftp stuff seems to inidicate that this is not possible. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)