Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: increase timeouts
Fintan Halpenny committed 2 years ago
commit 68339d86b964944375f13b154f5c7428702e0f72
parent 4d50f79f1c9de480af225f7d1b020b5235ee6466
2 files changed +2 -2
modified radicle-node/src/wire/protocol.rs
@@ -44,7 +44,7 @@ pub const NOISE_XK: HandshakePattern = HandshakePattern {

/// Default time to wait to receive something from a worker channel. Applies to
/// workers waiting for data from remotes as well.
-
pub const DEFAULT_CHANNEL_TIMEOUT: time::Duration = time::Duration::from_secs(9);
+
pub const DEFAULT_CHANNEL_TIMEOUT: time::Duration = time::Duration::from_secs(30);

/// Default time to wait until a network connection is considered inactive.
pub const DEFAULT_CONNECTION_TIMEOUT: time::Duration = time::Duration::from_secs(30);
modified radicle/src/node.rs
@@ -46,7 +46,7 @@ pub const DEFAULT_SOCKET_NAME: &str = "control.sock";
/// Default radicle protocol port.
pub const DEFAULT_PORT: u16 = 8776;
/// Default timeout when waiting for the node to respond with data.
-
pub const DEFAULT_TIMEOUT: time::Duration = time::Duration::from_secs(9);
+
pub const DEFAULT_TIMEOUT: time::Duration = time::Duration::from_secs(30);
/// Maximum length in bytes of a node alias.
pub const MAX_ALIAS_LENGTH: usize = 32;
/// Penalty threshold at which point we avoid connecting to this node.