Hi Peter,
Is there some particular document you can point me to? I've been using the libssh2 API documentation and the examples included with the libssh2 distribution, but it sounds like you are thinking of something different.
Thanks,
Jeremy
On May 17, 2014, at 10:45 AM, Peter Stuge <peter_at_stuge.se> wrote:
> Jeremy Friesner wrote:
>> I have a program that uses libssh2 to upload a 152MB file
>
> Try not to use scp. Please study the scp protocol, so that you know
> how your tools actually work. I think you'll quickly find that scp
> is a pretty bad protocol, and that SFTP would be a better choice.
>
>
>> I note that scp did detect the error, but not until *after* it had
>> already uploaded all 152MB to the server. That seems odd to me,
>
> Study the protocol. And as Bert pointed out, how do you know that
> it's the local scp process which detects an error?
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-05-17