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

nextgens at freenetproject.org nextgens at freenetproject.org
Wed Feb 28 19:29:35 UTC 2007


Author: nextgens
Date: 2007-02-28 19:29:34 +0000 (Wed, 28 Feb 2007)
New Revision: 11931

Modified:
   trunk/freenet/src/freenet/node/LocationManager.java
Log:
Log an error message on FNPSwapRejected if Sender isn't specified so that we can see why we have so many unclaimed messages...

Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java	2007-02-28 19:05:44 UTC (rev 11930)
+++ trunk/freenet/src/freenet/node/LocationManager.java	2007-02-28 19:29:34 UTC (rev 11931)
@@ -851,7 +851,10 @@
         Long luid = new Long(uid);
         RecentlyForwardedItem item = (RecentlyForwardedItem) recentlyForwardedIDs.get(luid);
         if(item == null) return false;
-        if(item.requestSender == null) return false;
+        if(item.requestSender == null){
+        	if(logMINOR) Logger.minor(this, "Got a FNPSwapRejected without any requestSender set! we can't and won't claim it! UID="+uid);
+        	return false;
+        }
         if(item.routedTo == null) {
             Logger.error(this, "Got SwapRejected on "+uid+" but routedTo is null!");
             return false;




More information about the cvs mailing list