@cryptotaxi247 / kubo / commits / 60b18d3ad

dht: tone down dht bootstrap

move to a less aggressive period. 5m instead of 20s

Juan Batiz-Benet committed Mar 19, 2015 at 04:01 UTC 60b18d3ad19bd33a3d046c17b4f91bbe877fe284
1 file changed +4 -5
routing/dht/dht_bootstrap.go
+4 -5
@@ -35,13 +35,12 @@ var DefaultBootstrapConfig = BootstrapConfig{
35 // of our implementation's robustness, we should lower this down to 8 or 4.
36 Queries: 1,
37
38 - // For now, this is set to 10 seconds, which is an aggressive period. We are
38 + // For now, this is set to 1 minute, which is a medium period. We are
39 // We are currently more interested in ensuring we have a properly formed
40 - // DHT than making sure our dht minimizes traffic. Once we are more certain
41 - // implementation's robustness, we should lower this down to 30s or 1m.
42 - Period: time.Duration(20 * time.Second),
40 + // DHT than making sure our dht minimizes traffic.
41 + Period: time.Duration(5 * time.Minute),
42
44 - Timeout: time.Duration(20 * time.Second),
43 + Timeout: time.Duration(10 * time.Second),
44 }
45
46 // Bootstrap ensures the dht routing table remains healthy as peers come and go.