mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mldonkey-users] Investigation: No download for some, full download


From: Pierre Etchemaite
Subject: Re: [Mldonkey-users] Investigation: No download for some, full downloads for the other
Date: Mon, 23 Dec 2002 01:16:12 +0100

Le Sun, 22 Dec 2002 18:36:50 +0100, Fabian Henrici <address@hidden> a
écrit :

> mld seems to stop looking for sources when 
> max_sources_per_file is reached but not to start again looking when 
> sources go bad and get dropped and source count gets too low again. 

What about not filtering server_waiting_queries lists when they're refilled?
After all, they will be filtered when they're dequeued...

That should lower mldonkey "inertia" when searching is needed again. That
may even require less memory because, if I'm not mistaken, lists will be
shared among servers' server_waiting_queries.

Untested patch:

--- donkey/donkeyServers.ml     21 Dec 2002 17:28:43 -0000      1.23
+++ donkey/donkeyServers.ml     23 Dec 2002 00:01:58 -0000
@@ -78,12 +78,7 @@
           match s.server_waiting_queries with
             [] ->
               begin
-                List.iter (fun file ->
-                    if file_state file = FileDownloading && 
-                       not (file_enough_sources file) then
-                      s.server_waiting_queries <- 
-                        file :: s.server_waiting_queries
-                ) !current_files;
+               s.server_waiting_queries <- !current_files;
                 if s.server_waiting_queries <> [] then
                   let nqueries = List.length s.server_waiting_queries in
                   iter (min n (nqueries - (n_per_round - n)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]