curl-users
Re: Corruption with uploads using sftp
Date: Fri, 29 Aug 2008 15:48:30 +0200 (CEST)
On Thu, 28 Aug 2008, Jade Rubick wrote:
> I recently upgrade curl to 7.18.2 (compiled on FC4 linux
> 2.6.17-1.2142_FC4smp) in order to take advantage of the ability to connect
> via Sftp. I compiled it against libssh2-0.18.
>
> I have been able to download files correctly, and do directory listings, but
> when I upload files, files that are more than tiny are corrupted and I get
> an error instead of successful completion.
>
> Any suggestions?
It looks like a bug.
> Current
> Dload Upload Total Spent Left Speed
> 0 3975k 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:--
> 0* Closing connection #0
> * Failed sending data to the peer
>
> curl: (55) Failed sending data to the peer
It seems to fail immediately when it wants to send data. It's really hard to
tell why based only on this output. I suggest you rebuilt both curl and
libssh2 with configure --enable-debug and see if that gives any further hints
in the debug output.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2008-08-29