From 419bc4730dbd6c026fa3b026258086ff1f4c9167 Mon Sep 17 00:00:00 2001 From: kdeme Date: Thu, 6 Feb 2020 19:19:54 +0100 Subject: [PATCH] More sensible timeout values for the Whisper/Waku handshake --- eth/p2p/rlpx_protocols/waku_protocol.nim | 2 +- eth/p2p/rlpx_protocols/whisper_protocol.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/p2p/rlpx_protocols/waku_protocol.nim b/eth/p2p/rlpx_protocols/waku_protocol.nim index c8fac30..8b6f1cd 100644 --- a/eth/p2p/rlpx_protocols/waku_protocol.nim +++ b/eth/p2p/rlpx_protocols/waku_protocol.nim @@ -254,7 +254,7 @@ p2pProtocol Waku(version = wakuVersion, topicInterest: wakuNet.config.topics) let m = await peer.status(wakuVersion, list, - timeout = chronos.milliseconds(500)) + timeout = chronos.milliseconds(5000)) if m.protocolVersion == wakuVersion: debug "Waku peer", peer, wakuVersion diff --git a/eth/p2p/rlpx_protocols/whisper_protocol.nim b/eth/p2p/rlpx_protocols/whisper_protocol.nim index a1d6bfa..3c78e26 100644 --- a/eth/p2p/rlpx_protocols/whisper_protocol.nim +++ b/eth/p2p/rlpx_protocols/whisper_protocol.nim @@ -131,7 +131,7 @@ p2pProtocol Whisper(version = whisperVersion, cast[uint64](whisperNet.config.powRequirement), @(whisperNet.config.bloom), whisperNet.config.isLightNode, - timeout = chronos.milliseconds(500)) + timeout = chronos.milliseconds(5000)) if m.protocolVersion == whisperVersion: debug "Whisper peer", peer, whisperVersion