cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Incomplete SFTP Transfers with curl 7.46.0 and libssh2 1.6.1

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 20 Feb 2016 18:00:25 -0500

On 12/15/2015 11:25 AM, Edward LoPinto wrote:
> I've been putting together a package for curl 7.46.0 for my disto at confusedbycode.com, but I've run into a problem. All SFTP transfers larger than a few kilobytes fail with the error message: "curl: (18) transfer closed with x bytes remaining to read", where "x" is the number of bytes. SCP transfers work just fine.
>
>
>
> Here are the details of my build:
>
> curl 7.46.0 (x86_64-pc-win32) libcurl/7.46.0 OpenSSL/1.0.2e zlib/1.2.8 WinIDN libssh2/1.6.1_DEV
> Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
> Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz
>
>
>
> I built curl and all the third party libraries with MS Visual Studio 2015. I downloaded the libssh2 source code from the GitHub repo, as the official release on libssh2.org did not include the CMake lists, and it's very hard to compile properly without them.
>
>
>
> I've tried compiling and re-compiling in every possible combination of configurations, and I still receive the same error, so I suspect it's a problem with how curl 7.46.0 interacts with libssh2 1.6.1.
>
>
>
> Here's a screenshot of the error: https://www.dropbox.com/s/xw706qdat2vowmg/interrupted_sftp.png?dl=0
>
>
>
> Does anyone have any ideas about what might be going wrong?

The next release of libssh2 is scheduled for Feb 23 [1], a few days from
now. Some issues related to Windows have been fixed since you wrote. If
you could, try a daily snapshot [2]. It would be great if you could let
them know before the release date if you still have a problem.

[1]: http://libssh2-devel.cool.haxx.narkive.com/ABKCtNXd/ping-for-release
[2]: http://libssh2.org/snapshots/

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-02-21