As threatened on IRC last night, I have finally checked in changes to the CP 
management code.

I got rid of the special case CP failure recovery code in  TreeRoutingTable 
and replaced it with the time based low CP recovery scheme suggested by 
Tavin.  My implementation is probably a little different than what he had in 
mind.

See the comments in the code for more info:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/freenet/Freenet/node/store/TreeRoutingTable.java

There are also changes to limit the number of outbound connections to
nodes that don't reply and to dereference nodes which never respond.

The previous implementation never dereferenced bad nodes.  The peformance
of the new code might be a little slow for nodes that have a lot of bad nodes
in their routing tables.  It should get better over time as bad nodes are 
pruned out.  This shouldn't be much of an issue for people running 
non-transient node which get traffic, since they will build up statistics 
pretty quickly.  It may take longer for transient nodes.  

--gj


-- 
Freesites
(0.3) freenet:MSK at SSK@enI8YFo3gj8UVh-Au0HpKMftf6QQAgE/homepage//
(0.4) freenet:SSK at npfV5XQijFkF6sXZvuO0o~kG4wEPAgM/homepage//

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to