Update of /cvsroot/freenet/freenet/src/freenet/node/rt
In directory sc8-pr-cvs1:/tmp/cvs-serv19278/src/freenet/node/rt
Modified Files:
Tag: ngrouting
NGRouting.java NGRoutingTable.java
Log Message:
7049:
Logging.
Add new diag var, messageSuccessRatio.
Fix obscure (I hope...) NPE.
Schedule a new conn opener in NGRouting's check-for-open-conn when we need one.
Make count of RT nodes with open conns only include nodes with open conns *NOW*.
Change reporting of inserts, hopefully fix insertReplyTime not set errors.
Set acceptedTime when we set accepted, even if we don't actually get an Accepted.
Also zab's ASL work, and edward j. huff's typo fixes
Index: NGRouting.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/Attic/NGRouting.java,v
retrieving revision 1.1.2.16
retrieving revision 1.1.2.17
diff -u -r1.1.2.16 -r1.1.2.17
--- NGRouting.java 29 Aug 2003 23:26:31 -0000 1.1.2.16
+++ NGRouting.java 30 Aug 2003 01:23:01 -0000 1.1.2.17
@@ -75,6 +75,8 @@
Core.logger.log(this, "Checking for free conn...", Logger.DEBUG);
long start = System.currentTimeMillis();
boolean ret = (node.connections.findFreeConnection(id) != null);
+ if(!ret)
+ node.scheduleConnectionOpener(id);
long end = System.currentTimeMillis();
if(logDEBUG)
Core.logger.log(this, "Checking for free conn for "+id+
Index: NGRoutingTable.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/Attic/NGRoutingTable.java,v
retrieving revision 1.1.2.19
retrieving revision 1.1.2.20
diff -u -r1.1.2.19 -r1.1.2.20
--- NGRoutingTable.java 27 Aug 2003 15:54:35 -0000 1.1.2.19
+++ NGRoutingTable.java 30 Aug 2003 01:23:01 -0000 1.1.2.20
@@ -222,8 +222,7 @@
nodeRefs.add(ref);
}
long lastConnectTime = e.lastConnectTime();
- if(lastConnectTime > 0 ||
- countInboundConnections(ref.getIdentity()) > 0 ||
+ if(countInboundConnections(ref.getIdentity()) > 0 ||
countOutboundConnections(ref.getIdentity()) > 0)
connectedNodes++;
if(e.successes() > 0)
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs