Author: nextgens
Date: 2008-11-14 02:33:35 +0000 (Fri, 14 Nov 2008)
New Revision: 23564

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
Flaw the rekeying logic: introduce an offset. That should make the responder 
initiate *next* rekeying attempt and hopefully will solve the problem of 
concurrent handshakes.

Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2008-11-14 02:15:15 UTC 
(rev 23563)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2008-11-14 02:33:35 UTC 
(rev 23564)
@@ -1898,7 +1898,7 @@
                        }
                        ctx = null;
                        isRekeying = false;
-                       timeLastRekeyed = now;
+                       timeLastRekeyed = now - (unverified ? 0 : 
FNPPacketMangler.MAX_SESSION_KEY_REKEYING_DELAY / 2);
                        totalBytesExchangedWithCurrentTracker = 0;
                        // This has happened in the past, and caused problems, 
check for it.
                        if(currentTracker != null && previousTracker != null && 

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to