[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mldonkey-users] Investigation: No download for some, full download
From: |
MLdonkey |
Subject: |
Re: [Mldonkey-users] Investigation: No download for some, full downloads for the other |
Date: |
Tue, 24 Dec 2002 00:27:09 +0100 |
Looking at the sources, I found what look like a reason why downloads
are low: current mldonkey cannot download from incoming connections!
The reason is in donkeyClients.ml:
...
let query_files c sock =
let nall_queries = ref 0 in
let nqueries = ref 0 in
if last_time () -. c.client_last_filereqs > !!min_reask_delay then
begin
List.iter (fun file ->
incr nall_queries;
if file_state file = FileDownloading then
direct_client_send sock (
let module M = DonkeyProtoClient in
let module C = M.QueryFile in
M.QueryFileReq file.file_md4);
incr nqueries
) (* !current_files *) c.client_source_for;
...
For an incoming connection, we don't know anything about the client,
so c.client_source_for = [], and we never ask for files...
So, change this in (just the last line):
let query_files c sock =
let nall_queries = ref 0 in
let nqueries = ref 0 in
if last_time () -. c.client_last_filereqs > !!min_reask_delay then
begin
List.iter (fun file ->
incr nall_queries;
if file_state file = FileDownloading then
direct_client_send sock (
let module M = DonkeyProtoClient in
let module C = M.QueryFile in
M.QueryFileReq file.file_md4);
incr nqueries
) (if c.client_source_for = [] then !current_files
else c.client_source_for);
and tell me if your downloads are improved...
- MLDonkey
- Re: [Mldonkey-users] New source management, (continued)
- Re: [Mldonkey-users] New source management, Joseph, 2002/12/23
- Re: [Mldonkey-users] Investigation: No download for some, fulldownloads for the other, René Gallati, 2002/12/23
- Re: [Mldonkey-users] Investigation: No download for some, fulldownloads for the other, MLdonkey, 2002/12/23
- Re: [Mldonkey-users] Investigation: No download for some, fulldownloads for the other, René Gallati, 2002/12/23
- Re: [Mldonkey-users] Investigation: No download for some, fulldownloads for the other, MLdonkey, 2002/12/23
- Re: [Mldonkey-users] Investigation: No download for some, fulldownloads for the other, René Gallati, 2002/12/25
- Re: [Mldonkey-users] Investigation: No download for some, full downloads for the other, Fabian Henrici, 2002/12/23
- Re: [Mldonkey-users] Investigation: No download for some, full downloads for the other, Fabian Henrici, 2002/12/23
- Re: [Mldonkey-users] Investigation: No download for some, full downloads for the other,
MLdonkey <=
- Re: [Mldonkey-users] Investigation: No download for some, full downloads for the other, Martin, 2002/12/23
- Re: [Mldonkey-users] Investigation: No download for some, full downloads for the other, Pierre Etchemaite, 2002/12/24
- Re: [Mldonkey-users] Investigation: No download for some, full downloads for the other, MLdonkey, 2002/12/24
- Re: [Mldonkey-users] Investigation: No download for some, full downloads for the other, Pierre Etchemaite, 2002/12/24
- [Mldonkey-users] Need a prompt in telnet interface, Michael Panteleit, 2002/12/25
- Re: [Mldonkey-users] Need a prompt in telnet interface, Taros666, 2002/12/25
- Re: [Mldonkey-users] Need a prompt in telnet interface, Michael Panteleit, 2002/12/25
- [Mldonkey-users] Traffic shaping, Sergio Bayarri Gausi, 2002/12/25
- AW: [Mldonkey-users] Traffic shaping, Roland Praml, 2002/12/25
- Re: [Mldonkey-users] Need a prompt in telnet interface, Carl Lobo, 2002/12/25