mldonkey-users
[Top][All Lists]
Advanced

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

Re: [Mldonkey-users] mldonkey gets paused


From: Pierre Etchemaite
Subject: Re: [Mldonkey-users] mldonkey gets paused
Date: Sat, 8 Mar 2003 09:10:33 +0100

Le Fri, 7 Mar 2003 12:48:53 +0100 (MET), Robert Reither
<address@hidden> a écrit :

> Error getpeername failed: Transport endpoint is not connected while
> writing block. Pausing download

I think the problem is that "reliable sources" uses client ip, and some
clients disconnect while we're still processing the sent block of data.
It suddenly becomes harder to determine client ip... :J

First thing to do is to make calls to DonkeyReliability.valid_block_detected
and DonkeyReliability.corrupted_block_detected conditionnal (to
reliable_sources) so that if bugs are found, there's always the alternative
of disabling the code.

Next, I don't know what's the best approach. Should we consider that this
case seldoms happen, and catch the exception ? Should we add a client_ip
field, set ASAP once a client is connected, and use it instead of calling
peer_ip each time ?




reply via email to

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