Can Provide more SFTPServer events?(download/upload start and incompletely downlaoded/uploaded)

0 votes
asked Mar 27 by dskim (150 points)

Dear rebex developers

I need some more events in sftpserver for makes realtime monitoring

and I have some ploblem with current events

I can check put and reput with PathAccessAuthorization events(Write/Create)

but when client disconnect during download
I can't get information the client's download bytes
and client try reget or get

so I suggest Client download Start Upload (put/reput)
and Download Start(get/reget)
and call Uploaded Downloaded when client disconnected during uplaod/download with completely or incompletely

please check my sugeest

thanks

1 Answer

0 votes
answered 6 days ago by Lukas Pokorny (107,350 points)

When a download fails, an SFTP client can easily resume the download by starting the transfer at the offset corresponding to the length of the file received so far. See here how to achieve this using Rebex SFTP (this is possible in most third-party SFTP clients).

However, FileServer object's FileDownloaded and FileUploaded events are not called for incomplete transfers (transfers where the client session ended before the file has been closed). We will add an option to the next release that changes this behavior, making it possible to determine amount of bytes sent to the client (or received from the client) even for incomplete files. If you would like a beta build when it's ready, please let us know.

Note: In case of incomplete (or unclosed) transfers, the server knows how much data it sent to the client, but it cannot determine how much of that data has actually been received and saved by the client before a failure occurred.

...