curl-library
Re: curl libssh2 sftp 4GB limit
Date: Wed, 5 Mar 2008 21:55:21 +0100 (CET)
On Wed, 5 Mar 2008, mikep_at_proatria.com wrote:
> I'm not sure if this is a libssh2 limit or the curl implimentation. If I
> try to download a file over 4GB I get the file size as (realsize - 4GB) and
> that small size is the amount that is downloaded. I know that curl with ftp
> has no problem, so I assume it's libssh2, but I thought it was probably
> worth a check as someone here may know a solution.
>
> I think the problem is with libssh2_sftp_stat which populates a
> LIBSSH2_SFTP_ATTRIBUTES structure.
I'm not aware of any such problems, assuming both libcurl and libssh2 are
built with large file support. The LIBSSH2_SFTP_ATTRIBUTES struct even uses a
libssh2_uint64_t type for the file size.
Could it be a problem in the server end?
> If anyone has any ideas please let me know (I will post to the libssh2 lists
> and continue looking myself).
You could start by trying one of the sftp examples in the libssh2 package and
see if that shows the problem...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2008-03-05