Max Horn wrote:
> >How hard would it be to add code to perform x number of downloads at
> >once, where x is set in the config field? just wondering, for people
> >who have fast connections.
>
> First, you would have to do multiple process (forks). Then you have
> to manage those somehow.
>
> Now what do you do if one of the downloads fails - ok the process has
> to interact with the user. Now another fails. Doh. OK, maybe you can
> add a "manager process" which will first handle the one then the
> other. Now, what if the user "aborts" one of the downloads. Do the
> others continue or are they aborted also? You have to differentiate
> between being called as part of "fink fetch-all" or "fink
> fetch-missing", and the case where you are called as part of "fink
> build" etc.
>
> Then, what if two packages try to download the same files (this does
> actually happen for some packages). So of course you have to handle
> that as well.

I believe that apt-get (or at least dselect) has code to deal with 
parallel downloads. At least, I noticed parallel downloads happening 
when I installed Debian Linux. So if you understand C/C++, it might be a 
good idea to see how they deal with these issues. I don't know much 
perl, but I could help you figure out what apt-get is doing if you're 
not familiar with C/C++.

Toodle pip,
Dave Vasilevsky


_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to