[freenet-cvs] r15462 - trunk/freenet/src/freenet/node

toad at freenetproject.org toad at freenetproject.org
Sat Oct 20 20:15:49 UTC 2007


Author: toad
Date: 2007-10-20 20:15:49 +0000 (Sat, 20 Oct 2007)
New Revision: 15462

Modified:
   trunk/freenet/src/freenet/node/FNPPacketMangler.java
Log:
Kill other connection attempts. Prevent leak.

Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java	2007-10-20 20:13:41 UTC (rev 15461)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java	2007-10-20 20:15:49 UTC (rev 15462)
@@ -980,7 +980,9 @@
 		pn.jfkKe = null;
 		pn.jfkKs = null;
 		synchronized (pn) {
-			pn.jfkNoncesSent.remove(replyTo);
+			// FIXME TRUE MULTI-HOMING: winner-takes-all, kill all other connection attempts since we can't deal with multiple active connections
+			// Also avoids leaking
+			pn.jfkNoncesSent.clear();
 		}
 		
 		final long t2=System.currentTimeMillis();




More information about the cvs mailing list