From 47fda04e1a23f878fc3766aff06ffcddaa9a5f79 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Sun, 5 May 2024 13:06:24 +0200 Subject: [PATCH] fix: increase default DHT query timeout 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. --- packages/kad-dht/src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kad-dht/src/constants.ts b/packages/kad-dht/src/constants.ts index 54d4de61b6..21834ff0e5 100644 --- a/packages/kad-dht/src/constants.ts +++ b/packages/kad-dht/src/constants.ts @@ -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