Skip to content

Commit

Permalink
fix: increase default DHT query timeout (#2525)
Browse files Browse the repository at this point in the history
30s is not enough for a typical query with an empty routing table.

A typical time is more like 60s so increase to 180s to give headroom.
  • Loading branch information
achingbrain authored May 7, 2024
1 parent d1c6f2a commit 1488a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kad-dht/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ export const TABLE_REFRESH_INTERVAL = 5 * minute
export const TABLE_REFRESH_QUERY_TIMEOUT = 30 * second

// When a timeout is not specified, run a query for this long
export const DEFAULT_QUERY_TIMEOUT = 30 * second
export const DEFAULT_QUERY_TIMEOUT = 180 * second

0 comments on commit 1488a73

Please sign in to comment.