node: increase timeouts
For larger fetches, a timeout for the channels and socket control are required. Bump the timeout from 9s to 30s. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
parent
4d50f79f1c
commit
68339d86b9
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue