I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 80654b27 authored by zzz's avatar zzz
Browse files

Discard at IBGW based on router clock not system clock

parent 8745ffd4
No related branches found
No related tags found
No related merge requests found
...@@ -386,7 +386,7 @@ public class TunnelDispatcher implements Service { ...@@ -386,7 +386,7 @@ public class TunnelDispatcher implements Service {
* *
*/ */
public void dispatch(TunnelGatewayMessage msg) { public void dispatch(TunnelGatewayMessage msg) {
long before = System.currentTimeMillis(); long before = _context.clock().now();
TunnelGateway gw = _inboundGateways.get(msg.getTunnelId()); TunnelGateway gw = _inboundGateways.get(msg.getTunnelId());
if (gw != null) { if (gw != null) {
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))
...@@ -423,7 +423,7 @@ public class TunnelDispatcher implements Service { ...@@ -423,7 +423,7 @@ public class TunnelDispatcher implements Service {
+ " existing = " + _inboundGateways.size(), new Exception("source")); + " existing = " + _inboundGateways.size(), new Exception("source"));
} }
long dispatchTime = System.currentTimeMillis() - before; long dispatchTime = _context.clock().now() - before;
if (_log.shouldLog(Log.DEBUG)) if (_log.shouldLog(Log.DEBUG))
_log.debug("Dispatch in gw time: " + dispatchTime + " gateway? " + gw); _log.debug("Dispatch in gw time: " + dispatchTime + " gateway? " + gw);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment