[#311324] 4GB file size limit

View Trackers | Bugs | Export CSV | Submit New | Monitor

Date:
2008-12-28 18:31
Priority:
4
State:
Closed
Submitted by:
R VK (rvk-guest)
Assigned to:
Philipp Hagemeister (phihag-guest)
Summary:
4GB file size limit

Detailed description
Hi,

Before all thanks a lot to developers for this great tool.

But I couldn't download files >=4294966272 bytes (4GB). I got the following error :
"Connection 0 finished
Write error!"

So by looking at the axel.c file, I've declared j as a long long integer :
--- axel-2.2/axel.c 2008-10-13 23:08:27.000000000 +0200
+++ axel-2.2.1/axel.c 2008-12-28 19:10:36.000000000 +0100
@@ -261,8 +261,8 @@
void axel_do( axel_t *axel )
{
fd_set fds[1];
- int hifd, i, j;
- long long int size;
+ int hifd, i;
+ long long int j, size;
struct timeval timeval[1];

/* Create statefile if necessary */


And then no more file size limit.
I Hope that it could help.

Greets,

Rodrigue

Add A Comment: Notepad

Followups: Sort comments antichronologically

Message
Date: 2008-12-29 13:16
Sender: Philipp Hagemeister

Fixed in rev74. Thanks for your patch. If you tell us your real name, you'll get a short credit in CHANGES.

To fix this kind of errors, in the extremely experimental crap branch 3.x-broken, all file sizes are described by AXEL_FILESIZE.
Date: 2008-12-29 17:25
Sender: R VK

Hi Philipp,

Happy to read this.
My real name for the short credit :)
Rodrigue Le Bayon

Many thanks for your work and best wishes for 2009

Rodrigue

Attached Files:

Attachments:
Size Name Date By Download
337 bytesaxel.patch2008-12-28 18:31rvk-guestaxel.patch

Changes:

Field Old Value Date By
status_idOpen2008-12-29 13:16phihag-guest
priority32008-12-29 13:16phihag-guest
assigned_tonone2008-12-29 13:16phihag-guest
close_date2008-12-29 13:162008-12-29 13:16phihag-guest
File Added3006: axel.patch2008-12-28 18:31rvk-guest
Powered By FusionForge
Show source