From d38eb66ecae88b433152dff2c83c406ffab8ccdf Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 29 Apr 2022 03:32:16 +1000 Subject: [PATCH] Decrease the peer handshake timeout to 3 seconds (#4212) --- zebra-network/src/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-network/src/constants.rs b/zebra-network/src/constants.rs index 2bd80322a..60448d643 100644 --- a/zebra-network/src/constants.rs +++ b/zebra-network/src/constants.rs @@ -88,7 +88,7 @@ pub const REQUEST_TIMEOUT: Duration = Duration::from_secs(20); /// This timeout should remain small, because it helps stop slow peers getting /// into the peer set. This is particularly important for network-constrained /// nodes, and on testnet. -pub const HANDSHAKE_TIMEOUT: Duration = Duration::from_secs(4); +pub const HANDSHAKE_TIMEOUT: Duration = Duration::from_secs(3); /// We expect to receive a message from a live peer at least once in this time duration. ///