resume upload _always_ corrupted
Brought to you by:
rumpeltux
Hi
I've tried the resume operation on wput, but it always ended up to corrupted files with larger sizes than the originals. (I've made many tests with different kinds of files and sizes).
I'm running wput 0.6.1 on fedora 14 (x64).
I attach a zip file containing an original file and the same file after a resumed upload with wput.
If you want to test my ftp server, feel free to ask me: I will send you an account and password by email.
Thanks.
For the attached file, the problem seems to be in the way wput calculates the remaining length to upload:
Length of original file: 123 967
Transfer interrupted at: 65 536
Remaining size to upload (as claimed by wput): 58 943 instead of 58431 (512 bytes difference)
Final size of uploaded file : 124 479 (512 bytes longer than original)
Turned out to be a bug on the server side. Wput is behaving correctly.