From bf290387de4f9f42031e146c0378706c21f21afe 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 7db220e..2dd141a 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