[freenet-cvs] r13903 - trunk/freenet/src/freenet/node
toad at freenetproject.org
toad at freenetproject.org
Tue Jul 3 15:37:36 UTC 2007
Author: toad
Date: 2007-07-03 15:37:36 +0000 (Tue, 03 Jul 2007)
New Revision: 13903
Modified:
trunk/freenet/src/freenet/node/NodeDispatcher.java
Log:
Don't reject a rejection!
Send the rejections to the right place
Modified: trunk/freenet/src/freenet/node/NodeDispatcher.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeDispatcher.java 2007-07-03 15:24:49 UTC (rev 13902)
+++ trunk/freenet/src/freenet/node/NodeDispatcher.java 2007-07-03 15:37:36 UTC (rev 13903)
@@ -660,7 +660,7 @@
ctx.nearest = nearest;
ctx.htl = htl;
} else {
- htl = node.decrementHTL(src, htl);
+ htl = node.decrementHTL(origSource, htl);
ctx.htl = htl;
if(logMINOR)
Logger.minor(this, "Updated htl to "+htl+" - myLoc="+myLoc+", target="+target+", nearest="+nearest);
@@ -668,13 +668,13 @@
// Complete ?
if(htl == 0) {
- if(src != null) {
+ if(origSource != null) {
// Complete
Message complete = DMT.createFNPProbeReply(id, target, nearest, best, counter++, linearCounter);
Message sub = DMT.createFNPBestRoutesNotTaken((Double[])locsNotVisited.toArray(new Double[locsNotVisited.size()]));
complete.addSubMessage(sub);
try {
- src.sendAsync(complete, null, 0, null);
+ origSource.sendAsync(complete, null, 0, null);
} catch (NotConnectedException e) {
Logger.error(this, "Not connected completing a probe request from "+src);
}
@@ -962,7 +962,7 @@
for(int i=0;i<locsNotVisited.length;i++)
notVisitedList.add(new Double(locsNotVisited[i]));
}
- innerHandleProbeRequest(src, id, lid, target, best, nearest, htl, counter, false, false, true, null, notVisitedList, 2.0, false, (short)-1, "rejected");
+ innerHandleProbeRequest(src, id, lid, target, best, nearest, htl, counter, false, false, true, null, notVisitedList, 2.0, true, (short)-1, "rejected");
return true;
}
More information about the cvs
mailing list