mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
be sure to allow for clock skew
This commit is contained in:
@@ -206,6 +206,8 @@ public class HandleTunnelMessageJob extends JobImpl {
|
||||
msg.setMessageExpiration(_message.getMessageExpiration());
|
||||
|
||||
int timeoutMs = (int)(_message.getMessageExpiration().getTime() - getContext().clock().now());
|
||||
timeoutMs += Router.CLOCK_FUDGE_FACTOR;
|
||||
|
||||
if (timeoutMs < 1000) {
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
_log.error("Message " + _message.getUniqueId() + " is valid and we would pass it on through tunnel "
|
||||
|
||||
Reference in New Issue
Block a user