Update of /cvsroot/freenet/freenet/src/freenet
In directory sc8-pr-cvs1:/tmp/cvs-serv9009/src/freenet
Modified Files:
ConnectionHandler.java Version.java
Log Message:
6278:
Make Identify a (more or less) regular message. We pull the ref off it when we receive
it, but later it gets executed by NewIdentify, which asks RT if it wants it, and if it
does, verifies the signature (significant CPU operation!), and adds it.
Do NOT verify references on the RSL thread.
Cache fingerprint on DSAPublicKey
Index: ConnectionHandler.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/ConnectionHandler.java,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -w -r1.197 -r1.198
--- ConnectionHandler.java 24 Oct 2003 02:24:57 -0000 1.197
+++ ConnectionHandler.java 25 Oct 2003 00:45:35 -0000 1.198
@@ -984,10 +984,12 @@
// Tells us the identity of the other end
Identify id = (Identify)msg;
handleReceivedIdentifyMessage(id);
- } else {
+ }
+ // Identify gets to set the ref on-thread, and get processed
+ // properly so it can be verified and added to the RT if necessary,
+ // off-thread
t.add(0, msg);
if(logDEBUG) logDEBUG("Scheduled "+msg+" on ticker");
- }
}
//Should be called whenever an new 'Identify' message is received over the
connection
//Updates the peerHandler and this connection with a new NodeReference for the
peer
Index: Version.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/Version.java,v
retrieving revision 1.471
retrieving revision 1.472
diff -u -w -r1.471 -r1.472
--- Version.java 24 Oct 2003 22:10:13 -0000 1.471
+++ Version.java 25 Oct 2003 00:45:35 -0000 1.472
@@ -18,7 +18,7 @@
public static String protocolVersion = "1.47";
/** The build number of the current revision */
- public static final int buildNumber = 6277;
+ public static final int buildNumber = 6278;
// 6028: may 3; ARK retrieval fix
public static final int ignoreBuildsAfter = 6500;
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs