Anatiferous blog | Move every zig.

Meta-Site

Welcome to Anatiferous: Using barnacles to make geese since 1689!

Howdy! This is my (William Reading's) webpage. At the moment, I only have this blog script and my gallery up, but I hope to get more stuff on this page at some point, or so I thought when I created this site years ago. Updates and shiny new copy to eventually go here. If you'd like to contact me to point out that I've done something to break XHTML/CSS standards or heaven forbid--look at my Vita--drop me a line at my e-mail address bill +spam @ [ELEPHANT] aggienerds.org. Simply remove "+spam", the spaces and the pachyderm along with its brackets and that address will reach me. I'm also available on Jabber/GChat/AIM/MSN with the same address above.

6/8/2006

Prozilla on Mac OS X

Filed under: — bill @ 5:46 am

While downloading the Vista Beta 2 iso image today, I found that the servers were amazingly unreliable. I was a bit surprised at this, since Akamai is usually much better about hosting. I set wget to downloading, but still wasn’t getting very far since the connection was getting reset about once a minute. Setting aggressive timeouts also didn’t quite cut it because I still had to wait for it to restart.

Annoyed by this problem, I set out to find something that could download the file with multiple threads so that hopefully at least one thread would be up and downloading at any given time. I found this nifty tool called Prozilla, which lets you download using multiple threads with configurable retries. Unfortunately, it didn’t compile out of the box on Mac OS X, but that wasn’t too hard to fix:


diff -ur prozilla-2.0.4/libprozilla/src/common.h prozilla-macosx/libprozilla/src/common.h
— prozilla-2.0.4/libprozilla/src/common.h 2006-02-08 11:19:54.000000000 -0600
+++ prozilla-macosx/libprozilla/src/common.h 2006-06-08 06:30:28.000000000 -0500
@@ -83,7 +83,7 @@
#include

-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined (__APPLE__)
#include
#include
#else
diff -ur prozilla-2.0.4/src/main.cpp prozilla-macosx/src/main.cpp
— prozilla-2.0.4/src/main.cpp 2006-02-08 11:18:58.000000000 -0600
+++ prozilla-macosx/src/main.cpp 2006-06-08 06:32:09.000000000 -0500
@@ -512,7 +512,7 @@
{
free(url_data);
delete(dl_win);
- shutdown();
+ dl_shutdown();
return -1;
}
delete(dl_win);
@@ -520,11 +520,11 @@
}
}

- shutdown();
+ dl_shutdown();

}

-void shutdown(void)
+void dl_shutdown(void)
{

cleanuprt ();
diff -ur prozilla-2.0.4/src/main.h prozilla-macosx/src/main.h
— prozilla-2.0.4/src/main.h 2006-02-08 11:18:59.000000000 -0600
+++ prozilla-macosx/src/main.h 2006-06-08 06:32:25.000000000 -0500
@@ -79,6 +79,6 @@

extern struct runtime rt;

-void shutdown(void);
+void dl_shutdown(void);

#endif

Comments

No comments yet.

RSS feed for comments on this post.

Leave a comment

Sorry, the comment form is closed at this time.

 

Google
 
Web anatifero.us
aggienerds.org

Powered by WordPress