curl-library
Re: sftp download issue
Date: Tue, 23 Aug 2011 09:06:10 +0200 (CEST)
On Tue, 23 Aug 2011, Sumukh Anantha Manohar wrote:
> I am getting the error: *curl: (18) transfer closed with 1174 bytes
> remaining to read.
Do you always get this same error (and byte amount) no matter how large file
you get? If not, do you get the same error and byte amount for the same file
if you retry the exact same transfer?
> This is happening only for sftp protocol, not for ftp. So from where the
> problem is arising ?
SFTP is _completely_ different than FTP and uses completely different code
paths internally, so a bug that shows only for one of the protocols is not
unexpected.
> When i used the latest version of libssh2 (1.2.9), it is downloading but at
> the end i will get the above error mentioned. This problem is happening even
> for downloading 1GB files also.
Eh, so does it work for _any_ sftp files at all? If so, which?
Also, as libcurl uses libssh2 for all the SFTP magic, can you build one of the
libssh2 example snippets and try that and see if you get failures with them as
well (or not), as then we've narrowed down a little where to continue
looking...
Please be prepared that the task of solving this problem may involve a bit of
digging, fiddling and debugging from your end.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-08-23