Author: toad
Date: 2008-02-06 00:57:52 +0000 (Wed, 06 Feb 2008)
New Revision: 17581
Modified:
trunk/freenet/src/freenet/node/RequestSender.java
Log:
Hmmm maybe not
Modified: trunk/freenet/src/freenet/node/RequestSender.java
===================================================================
--- trunk/freenet/src/freenet/node/RequestSender.java 2008-02-06 00:56:43 UTC
(rev 17580)
+++ trunk/freenet/src/freenet/node/RequestSender.java 2008-02-06 00:57:52 UTC
(rev 17581)
@@ -407,14 +407,13 @@
if(logMINOR) Logger.minor(this, "Routing request to "+next);
nodesRoutedTo.add(next);
- // Create the data request *before* decrementing HTL, so it
doesn't get decremented twice.
- Message req = createDataRequest();
-
if(Location.distance(target, nextValue) >
Location.distance(target, nearestLoc)) {
htl = node.decrementHTL((hasForwarded ? next : source), htl);
if(logMINOR) Logger.minor(this, "Backtracking:
target="+target+" next="+nextValue+" closest="+nearestLoc+" so htl="+htl);
}
+ Message req = createDataRequest();
+
// Not possible to get an accurate time for sending, guaranteed to
be not later than the time of receipt.
// Why? Because by the time the sent() callback gets called, it
may already have been acked, under heavy load.
// So take it from when we first started to try to send the
request.