From 742d0ea0ce5748c0935f79ebcbe0cff78cc6f32b Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Sat, 8 Jul 2023 01:25:02 +0200 Subject: [PATCH] reduce default response timeout We really don't need this to be 4 seconds. Later we should tune it better based on measurements or estimates, Signed-off-by: Csaba Kiraly --- libp2pdht/private/eth/p2p/discoveryv5/protocol.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim index 343176a..7e00786 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim @@ -126,7 +126,7 @@ const IpMajorityInterval = 5.minutes ## Interval for checking the latest IP:Port ## majority and updating this when SPR auto update is set. InitialLookups = 1 ## Amount of lookups done when populating the routing table - ResponseTimeout* = 4.seconds ## timeout for the response of a request-response + ResponseTimeout* = 500.milliseconds ## timeout for the response of a request-response MaxProvidersEntries* = 1_000_000 # one million records MaxProvidersPerEntry* = 20 # providers per entry ValueReplication = 5 # store a value in this many nodes