Skip to content

Commit 6c7f801

Browse files
authored
Lower query_peer_timeout from 10s to 2s (#726)
1 parent 24dd039 commit 6c7f801

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

newsfragments/726.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix ``historyRecursiveFindNodes`` endpoint taking too long to return

portalnet/src/find/iterators/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl Default for QueryConfig {
5858
Self {
5959
parallelism: 3,
6060
num_results: 20,
61-
peer_timeout: Duration::from_secs(10),
61+
peer_timeout: Duration::from_secs(2),
6262
}
6363
}
6464
}

portalnet/src/overlay.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl Default for OverlayConfig {
7171
bucket_filter: None,
7272
ping_queue_interval: None,
7373
query_parallelism: 3, // (recommended α from kademlia paper)
74-
query_peer_timeout: Duration::from_secs(10),
74+
query_peer_timeout: Duration::from_secs(2),
7575
query_timeout: Duration::from_secs(60),
7676
query_num_results: MAX_NODES_PER_BUCKET,
7777
findnodes_query_distances_per_peer: 3,

0 commit comments

Comments
 (0)