cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re[3]: >2 GB file support

From: Vladimir Trebicky <trebicky_at_xhost.cz>
Date: Mon, 18 Aug 2003 18:54:02 +0200

>> Now I'm trying to upload some >2GB file via ftp and check integrity.

DS> Did it work?

First I dumbly tried to upload the whole 3.3 GB file via ftp to a backup
server of out ISP (in silent mode). I couldn't do a MD5 to check the
integrity, but that "Serv-U FTP Server v4.1 for WinSock" told me that the
uploaded file is 3412099072 bytes large.

I wrote a simple program in C (compiled with -D_FILE_OFFSET_BITS=64)
which stated the original file on my hard disk and told me that it has
3412135616 bytes. So the uploaded file is 36544 bytes shorter.

Meanwhile I again tried to upload the file, but not in silent mode.

  % Total % Received % Xferd Average Speed Time Curr.
                                 Dload Upload Total Current Left Speed
100 -2048M 0 0 0 -2048M 0 1581k --:--:-- 0:35:07 --:--:-- 1113k
curl: (18) Uploaded unaligned file size (-882831680 out of 0 bytes)

Now the ftp servers tells me that this second file has 3412131840
bytes. 3776 byte difference.

!!!===

I uploaded the file once again, not in silent mode, to localhost.ftp.
(proftpd 1.2.8) The same curl: (18) error with the same number
(-882831680 out of 0 bytes). But (!) same sizes and same MD5s!

I downloaded the first uploaded file back to local with midnight. It
differs, naturally.

Now I'm trying to upload the file to that backup server with mc to
determine wheter it is cURL problem or wheter it is the w2k server
messing up large files.

Minimally I suspect lib/urldata.h that there is some other unpatched
types like "long infilesize" at line 748.

-- 
Regards,
 Vladimir Trebicky                            mailto:trebicky_at_xhost.cz
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-18