2004-11-06 jrandom
* Fix for a long standing synchronization bug in the SDK that in rare instances can add a few seconds of lag.
This commit is contained in:
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
||||
*
|
||||
*/
|
||||
public class RouterVersion {
|
||||
public final static String ID = "$Revision: 1.68 $ $Date: 2004/11/02 06:57:08 $";
|
||||
public final static String ID = "$Revision: 1.69 $ $Date: 2004/11/05 05:53:40 $";
|
||||
public final static String VERSION = "0.4.1.3";
|
||||
public final static long BUILD = 9;
|
||||
public final static long BUILD = 10;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + VERSION);
|
||||
System.out.println("Router ID: " + RouterVersion.ID);
|
||||
|
@ -186,6 +186,7 @@ public class SendTunnelMessageJob extends JobImpl {
|
||||
_state = 12;
|
||||
// we're the gateway, so sign, encrypt, and forward to info.getNextHop()
|
||||
TunnelMessage msg = prepareMessage(info);
|
||||
_state = 66;
|
||||
if (msg == null) {
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
_log.error("wtf, unable to prepare a tunnel message to the next hop, when we're the gateway and hops remain? tunnel: " + info);
|
||||
@ -212,13 +213,17 @@ public class SendTunnelMessageJob extends JobImpl {
|
||||
_log.warn("Adding a tunnel message that will expire shortly ["
|
||||
+ new Date(_expiration) + "]", getAddedBy());
|
||||
}
|
||||
_state = 67;
|
||||
msg.setMessageExpiration(new Date(_expiration));
|
||||
getContext().jobQueue().addJob(new SendMessageDirectJob(getContext(), msg,
|
||||
info.getNextHop(), _onSend,
|
||||
_onReply, _onFailure,
|
||||
_selector,
|
||||
(int)(_expiration - getContext().clock().now()),
|
||||
_priority));
|
||||
_state = 68;
|
||||
Job j = new SendMessageDirectJob(getContext(), msg,
|
||||
info.getNextHop(), _onSend,
|
||||
_onReply, _onFailure,
|
||||
_selector,
|
||||
(int)(_expiration - getContext().clock().now()),
|
||||
_priority);
|
||||
_state = 69;
|
||||
getContext().jobQueue().addJob(j);
|
||||
_state = 15;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user