[axel-devel] [axel-Bugs][311324] 4GB file size limit

axel-bugs at alioth.debian.org axel-bugs at alioth.debian.org
Mon Dec 29 13:16:56 UTC 2008


Bugs item #311324, was opened at 2008-12-28 18:31
>Status: Closed
>Priority: 4
Submitted By: R VK (rvk-guest)
>Assigned to: Philipp Hagemeister (phihag-guest)
Summary: 4GB file size limit 


Initial Comment:
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

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

>Comment By: Philipp Hagemeister (phihag-guest)
Date: 2008-12-29 13:16

Message:
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.

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

You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=413085&aid=311324&group_id=100070



More information about the axel-devel mailing list