Changeset 51edaed


Ignore:
Timestamp:
Feb 12, 2013 2:58:52 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8950cc48
Parents:
3a2accd
Message:

NetDB: Randomize delay before floodfill store verify

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • history.txt

    r3a2accd r51edaed  
     12013-02-12 zzz
     2 * NetDB: Randomize delay before floodfill store verify
     3
    142013-02-10 zzz
     5 * Logs: Again fix setting log filename (ticket #805)
     6 * Update: Bump torrent update to 3% of routers
     7 * Wrapper: Update ARMv6 Java Service Wrapper to v3.5.17 (ticket #826).
     8
     92013-02-09 zzz
    210 * NetDB:
    311   - Encrypt DatabaseLookup messages out exploratory tunnels
  • router/java/src/net/i2p/router/RouterVersion.java

    r3a2accd r51edaed  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 10;
     21    public final static long BUILD = 11;
    2222
    2323    /** for example "-test" */
  • router/java/src/net/i2p/router/networkdb/kademlia/FloodfillVerifyStoreJob.java

    r3a2accd r51edaed  
    3838    private final Set<Hash> _ignore;
    3939   
    40     private static final int START_DELAY = 20*1000;
     40    private static final int START_DELAY = 18*1000;
     41    private static final int START_DELAY_RAND = 9*1000;
    4142    private static final int VERIFY_TIMEOUT = 20*1000;
    4243    private static final int MAX_PEERS_TO_TRY = 4;
     
    6061        }
    6162        // wait some time before trying to verify the store
    62         getTiming().setStartAfter(ctx.clock().now() + START_DELAY);
     63        getTiming().setStartAfter(ctx.clock().now() + START_DELAY + ctx.random().nextInt(START_DELAY_RAND));
    6364        getContext().statManager().createRateStat("netDb.floodfillVerifyOK", "How long a floodfill verify takes when it succeeds", "NetworkDatabase", new long[] { 60*60*1000 });
    6465        getContext().statManager().createRateStat("netDb.floodfillVerifyFail", "How long a floodfill verify takes when it fails", "NetworkDatabase", new long[] { 60*60*1000 });
Note: See TracChangeset for help on using the changeset viewer.