Decrease the peer handshake timeout to 3 seconds (#4212)

This commit is contained in:
teor 2022-04-29 03:32:16 +10:00 committed by GitHub
parent d021f50df1
commit d38eb66eca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.
///