[mnet-devel] patches that improve v0.6 behavior

Zooko O'Whielacronx zooko at zooko.com
Thu Mar 11 12:47:12 GMT 2004


These patches have all been committed to mnet/ HEAD, which is the
v0.6.3-UNSTABLE branch.  I hope that Arno will merge them into v0.6.2 as safely
as possible.  (This merging isn't trivial using CVS, but it isn't hard either.
Basically you probably end up looking at the patch in one window and then
editing the source code of v0.6.2 in another window.)

--Z

peerman.py, rev. 1.38: demultiplex multiple queries to same MT about same peer

http://cvs.sourceforge.net/viewcvs.py/mnet/mnet/common/peerman.py?r1=1.38

This patch should in theory ease the "memory usage explosion" problem.  It also
worked fine in testing, although the memory-usage-explosion bug isn't very
reproduceable, so I don't really know if this patch was helping or if it was
just not-hurting.

This patch also makes for better network usage in general -- it substantially
reduces the number of useless "lookup contact info" messages.


peerman.py, rev. 1.40: bootpageloading improvement: if you try to load a
bootpage and don't find any MT contact infos, then try another bootpage 15
seconds later; (I observed that my node consistently fails to connect to
http://zooko.com/bootpage.txt even though it consistently works when I run
"wget http://zooko.com/bootpage.txt".  :-P)

http://cvs.sourceforge.net/viewcvs.py/mnet/mnet/common/peerman.py?r1=1.40

There seems to be a bug in bootpage loading, and this workaround seems to help
in practice.


peerman.py, rev. 1.41: patch so that when you reach the end of the bootpage url
list, then try again in 1 second rather than in 1 hour; patch so that if your
version of Python is new enough to support safe unrepr (Python >= 2.2 ?), then
you can load a bootpage that contains repr-encoded relayer Ids; simplify the
try-try-again patch from previous commit

http://cvs.sourceforge.net/viewcvs.py/mnet/mnet/common/peerman.py?r1=1.41



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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