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

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

NetDB: Ensure RI republish time is less than validation time

to prevent failures on connections esp. for hidden mode
parent 8cc62b5b
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ public class PublishLocalRouterInfoJob extends JobImpl { ...@@ -46,7 +46,7 @@ public class PublishLocalRouterInfoJob extends JobImpl {
* floodfills since we store directly. * floodfills since we store directly.
* Too long and the floodfill will drop us - timeout is 60 minutes. * Too long and the floodfill will drop us - timeout is 60 minutes.
*/ */
private static final long PUBLISH_DELAY = 52*60*1000; private static final long PUBLISH_DELAY = 43*60*1000;
/** this needs to be long enough to give us time to start up, /** this needs to be long enough to give us time to start up,
* but less than 20m (when we start accepting tunnels and could be a IBGW) * but less than 20m (when we start accepting tunnels and could be a IBGW)
......
...@@ -140,7 +140,7 @@ public abstract class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacad ...@@ -140,7 +140,7 @@ public abstract class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacad
private final static long ROUTER_INFO_EXPIRATION_MIN = 90*60*1000l; private final static long ROUTER_INFO_EXPIRATION_MIN = 90*60*1000l;
private final static long ROUTER_INFO_EXPIRATION_SHORT = 75*60*1000l; private final static long ROUTER_INFO_EXPIRATION_SHORT = 75*60*1000l;
private final static long ROUTER_INFO_EXPIRATION_FLOODFILL = 60*60*1000l; private final static long ROUTER_INFO_EXPIRATION_FLOODFILL = 60*60*1000l;
private final static long ROUTER_INFO_EXPIRATION_INTRODUCED = 45*60*1000l; private final static long ROUTER_INFO_EXPIRATION_INTRODUCED = 54*60*1000l;
/** /**
* Don't let leaseSets go too far into the future * Don't let leaseSets go too far into the future
......
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