- Switch back from storing NID to full NodeInfo for outgoing tokens so they don't get expired early

- Announce only to the single closest DHT peer
- Increase random port range
- Decrease max local tracker and DHT size
This commit is contained in:
zzz
2012-06-04 14:15:38 +00:00
parent 121491a3be
commit d5cb443925
4 changed files with 17 additions and 16 deletions

View File

@@ -374,7 +374,8 @@ public class TrackerClient extends I2PAppThread
// announce ourselves while the token is still good
// FIXME this needs to be in its own thread
if (!stop) {
int good = _util.getDHT().announce(snark.getInfoHash(), 8, 5*60*1000);
// announce only to the 1 closest
int good = _util.getDHT().announce(snark.getInfoHash(), 1, 5*60*1000);
_util.debug("Sent " + good + " good announces to DHT", Snark.INFO);
}