cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-3076430 ] SFTP resume with 4GB file does not work

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 28 Sep 2010 06:55:08 +0000

Bugs item #3076430, was opened at 2010-09-27 11:48
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3076430&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SCP/SFTP
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ernest Beinrohr (oernii)
Assigned to: Daniel Stenberg (bagder)
Summary: SFTP resume with 4GB file does not work

Initial Comment:
I was trying to resume a file, part of which was downloaded with scp. The file is ~3.5GB large (3579444861) and the small part is
176521216 bytes. However, curl refuses to resume the file with the message:

curl: (36) Offset (176521216) was beyond file size (-715522435)

command line:
/usr/src/curl-7.21.1/src/curl -v sftp://user@server/backup/file.tar.bz2 -C - -o file.tar.bz2

curl version:
curl 7.21.1 (x86_64-unknown-linux-gnu) libcurl/7.21.1 OpenSSL/1.0.0a zlib/1.2.3 libidn/1.18 libssh2/1.2.5
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IDN Largefile NTLM SSL libz

PS: ever worse, if I leave out the '-C -' part, curl crashes :(

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2010-09-28 08:55

Message:
Right, to me this looks like a bad server-end that responds with a weird
file size on the SFTP stat request. I'll soon provide you with a test patch
to allow us to see this in detail.

----------------------------------------------------------------------

Comment By: Ernest Beinrohr (oernii)
Date: 2010-09-28 08:50

Message:
my ssh: OpenSSH_5.5p1, OpenSSL 1.0.0a 1 Jun 2010
remote server: RHEL 5.5: OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul
2008

PS: against another ssh 5.5 it works

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-09-27 18:36

Message:
Do you know what server software and version is running in the other end?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3076430&group_id=976
Received on 2010-09-28

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET