Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-kad-dht
Commits
34c76023
Commit
34c76023
authored
Mar 19, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dht: tone down dht bootstrap
move to a less aggressive period. 5m instead of 20s
parent
6fa8bf0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
dht_bootstrap.go
dht_bootstrap.go
+4
-5
No files found.
dht_bootstrap.go
View file @
34c76023
...
...
@@ -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 1
0 seconds
, which is a
n 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
(
2
0
*
time
.
Second
),
Timeout
:
time
.
Duration
(
1
0
*
time
.
Second
),
}
// Bootstrap ensures the dht routing table remains healthy as peers come and go.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment