From 60b18d3ad19bd33a3d046c17b4f91bbe877fe284 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Thu, 19 Mar 2015 04:01:15 -0700 Subject: [PATCH] dht: tone down dht bootstrap move to a less aggressive period. 5m instead of 20s --- routing/dht/dht_bootstrap.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/routing/dht/dht_bootstrap.go b/routing/dht/dht_bootstrap.go index 79dcb4d64..d5bbfa860 100644 --- a/routing/dht/dht_bootstrap.go +++ b/routing/dht/dht_bootstrap.go @@ -35,13 +35,12 @@ var DefaultBootstrapConfig = BootstrapConfig{ // of our implementation's robustness, we should lower this down to 8 or 4. Queries: 1, - // For now, this is set to 10 seconds, which is an aggressive period. We are + // For now, this is set to 1 minute, which is a medium period. We are // We are currently more interested in ensuring we have a properly formed - // DHT than making sure our dht minimizes traffic. Once we are more certain - // implementation's robustness, we should lower this down to 30s or 1m. - Period: time.Duration(20 * time.Second), + // DHT than making sure our dht minimizes traffic. + Period: time.Duration(5 * time.Minute), - Timeout: time.Duration(20 * time.Second), + Timeout: time.Duration(10 * time.Second), } // Bootstrap ensures the dht routing table remains healthy as peers come and go.