i2psnark DHT tweaks (ticket #1281)

- Extend DHT tracker expire time from 45m to 3h
  - Extend DHT announce interval from 10m to 40m
  - Increase announces from 1 peer to 4
This commit is contained in:
zzz
2014-05-25 20:38:39 +00:00
parent 5a3eab0c7c
commit 7ff5d36f07
2 changed files with 6 additions and 3 deletions

View File

@ -34,7 +34,8 @@ class DHTTracker {
/** stagger with other cleaners */
private static final long CLEAN_TIME = 199*1000;
private static final long MAX_EXPIRE_TIME = 45*60*1000;
/** no guidance in BEP 5; Vuze is 8h */
private static final long MAX_EXPIRE_TIME = 3*60*60*1000L;
private static final long MIN_EXPIRE_TIME = 15*60*1000;
private static final long DELTA_EXPIRE_TIME = 3*60*1000;
private static final int MAX_PEERS = 2000;