[mnet-devel] patch: don't kill too-fast redundant lookups

Arno Waschk hamamatsu at gmx.de
Tue Feb 17 19:21:24 GMT 2004


i thought the solution was a cache which returns the result up to these 2 
seconds, but i did not find an elegant way to have information about the 
originally initiated message when being in the callback... we will need 
something for that...
Arno

On 17 Feb 2004 11:19:50 -0500, Zooko O'Whielacronx <zooko at zooko.com> wrote:

>
> We've discussed this on IRC.  The "kill too-fast redundant lookups" 
> feature can
> cause failures.
>
> This is the simplest way to disable it, but not the prettiest.
>
>
> --- common/peerman.py	14 Feb 2004 18:16:08 -0000	1.30
> +++ common/peerman.py	17 Feb 2004 16:06:40 -0000
> @@ -361,8 +356,8 @@ class PeerMan:
>                  callback(outcome=None, failure_reason="no new contact 
> information found after querying MTs")
>
>          for mtId in qmtIds:
> -            if PEERMAN:
> +            if 2 == 2:
>                  self.mtm.initiate(mtId, "lookup contact info", nodeId, 
> outcome_func=demultiplex, post_timeout_outcome_func=demultiplex, 
> lookupchain=lookupchain + (mtId,))
>              else:
>                  if mtId not in self.lookupcontacttimes.keys():
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> mnet-devel mailing list
> mnet-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mnet-devel
>



-- 
http://www.arnowaschk.de


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel




More information about the Mnet-devel mailing list