I have a program that is uploading a number of large files and I would like to send these asynchronously, but I am receiving an End of File exception.
The async call is pretty straightforward:
Task task = _sftp.PutFileAsync(localPath, remotePath, null);
This method is called from within a foreach loop and after the loop there is a blocking call to wait for the files to complete processing
When I look at the status message of the taskList, I see the EOF exceptions. Below are a couple of the error messages from the logger:
2018-11-27 18:05:20.126 INFO Sftp(1) Response: SSHFXPSTATUS (90, 1, 'End of file')
2018-11-27 18:05:20.133 ERROR Sftp(1) Info: Rebex.Net.SftpException: End of file; End of file.
at Rebex.Net.GRU.NR(DIU I, Type R)
at Rebex.Net.Sftp.IKI(TOU I, YIU R, String O, Stream U, Int64 N, Int64 D, TEU V)
Thanks in advance for any help and guidance you can provide! I have been beating my head against my desk for days on this one.