Decrease the peer handshake timeout to 3 seconds (#4212)
This commit is contained in:
parent
d021f50df1
commit
d38eb66eca
|
@ -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
|
/// This timeout should remain small, because it helps stop slow peers getting
|
||||||
/// into the peer set. This is particularly important for network-constrained
|
/// into the peer set. This is particularly important for network-constrained
|
||||||
/// nodes, and on testnet.
|
/// 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.
|
/// We expect to receive a message from a live peer at least once in this time duration.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue