Skip to content

Commit

Permalink
feat: up the timeout for comms (#5758)
Browse files Browse the repository at this point in the history
Description
---
increase timeouts

Motivation and Context
---
We recently decreased timeouts across the communications. This increases
it again somewhat after it was observed that the newer timeouts maybe
too quick for slow tor connections
  • Loading branch information
SWvheerden committed Sep 12, 2023
1 parent 45c20a3 commit 1054868
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions comms/core/src/connection_manager/manager.rs
Expand Up @@ -141,12 +141,12 @@ impl Default for ConnectionManagerConfig {
max_simultaneous_inbound_connects: 100,
network_info: Default::default(),
liveness_max_sessions: 1,
time_to_first_byte: Duration::from_secs(3),
time_to_first_byte: Duration::from_secs(6),
liveness_cidr_allowlist: vec![cidr::AnyIpCidr::V4("127.0.0.1/32".parse().unwrap())],
liveness_self_check_interval: None,
auxiliary_tcp_listener_address: None,
peer_validation_config: PeerValidatorConfig::default(),
noise_handshake_recv_timeout: Duration::from_secs(3),
noise_handshake_recv_timeout: Duration::from_secs(6),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion comms/core/src/connection_manager/peer_connection.rs
Expand Up @@ -62,7 +62,7 @@ use crate::{

const LOG_TARGET: &str = "comms::connection_manager::peer_connection";

const PROTOCOL_NEGOTIATION_TIMEOUT: Duration = Duration::from_secs(5);
const PROTOCOL_NEGOTIATION_TIMEOUT: Duration = Duration::from_secs(10);

static ID_COUNTER: AtomicUsize = AtomicUsize::new(0);

Expand Down
2 changes: 1 addition & 1 deletion comms/core/src/noise/config.rs
Expand Up @@ -58,7 +58,7 @@ impl NoiseConfig {
Self {
node_identity,
parameters,
recv_timeout: Duration::from_secs(1),
recv_timeout: Duration::from_secs(3),
}
}

Expand Down

0 comments on commit 1054868

Please sign in to comment.