[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sftp_write hangs
[Thread Prev] | [Thread Next]
- Subject: sftp_write hangs
- From: Alan Ong <sarcasigan@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 29 Oct 2010 14:03:40 +0800
- To: libssh@xxxxxxxxxx
Hello, I have build a sftp client that downloads and uploads files from OpenSSH for Windows server. I have tried to download more than 10mb files, and when I traced the function calls, it will run through sftp_write and the program will get back the focus, but the downloading of file will not start. Here is a sample code: flWrite = sftp_open(sftp, strRemoteFilePath, O_WRONLY | O_CREAT | O_TRUNC, 0700); nSizeRead = oLocalFile.Read(data, nFileSize); nSizeWrite = sftp_write(flWrite, data, nSizeRead); oLocalFile.Close(); sftp_close(flWrite); Am i coding it right? meaning should i write it multiple times in smaller bytes rather than 1 big write? Thank you for your time.
Re: sftp_write hangs | Andreas Schneider <asn@xxxxxxxxxxxx> |