Changeset 0a938d90


Ignore:
Timestamp:
Jan 7, 2015 8:11:04 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
285c13d
Parents:
a02a265
Message:

Router: Don't reset uptime after a soft restart
Tunnels: Temporarily increase exploratory tunnel quantity at startup,
so that netdb refresh will work better

Location:
router/java/src/net/i2p/router
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/Router.java

    ra02a265 r0a938d90  
    12741274        }
    12751275        ((RouterClock) _context.clock()).removeShiftListener(this);
    1276         _started = _context.clock().now();
     1276        // Let's not stop accepting tunnels, etc
     1277        //_started = _context.clock().now();
    12771278        Thread t = new Thread(new Restarter(_context), "Router Restart");
    12781279        t.setPriority(Thread.NORM_PRIORITY + 1);
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java

    ra02a265 r0a938d90  
    5353    private static final int BUILD_TRIES_LENGTH_OVERRIDE_1 = 10;
    5454    private static final int BUILD_TRIES_LENGTH_OVERRIDE_2 = 18;
     55    private static final long STARTUP_TIME = 30*60*1000;
    5556   
    5657    TunnelPool(RouterContext ctx, TunnelPoolManager mgr, TunnelPoolSettings settings, TunnelPeerSelector sel) {
     
    348349                }
    349350            }
     351        }
     352        if (_settings.isExploratory() && _context.router().getUptime() < STARTUP_TIME) {
     353            // more exploratory during startup, when we are refreshing the netdb RIs
     354            rv++;
    350355        }
    351356        return rv;
Note: See TracChangeset for help on using the changeset viewer.