Re: SSHServer not receving full file - WeOnlyDo Discussion board

Re: SSHServer not receving full file (General questions)

by dschmidt, Tuesday, April 19, 2005, 18:15 (7157 days ago) @ wodSupport

We have run the test again with the #4 example from SFTP (upload and download) and the #5 example from SSHD (SFTP Server).

If the code from both examples are used without modification, things work fine. The file is transferred correctly.

However, we are transferring files on demand from an application called from another. Therefore, we disconnect immediately after wodSFTP tells us the transfer was successful. To simluate this, in the SFTP example, we put a SFTP1.Disconnect in the DONE event. If this is placed here, an imcomplete file is transferred.

In our code we issue the putfile command then loop until the done event fires and a flag is set. We then immediately disconnect.

Regards,
Darren


Complete thread: