diff --git a/Cargo.lock b/Cargo.lock index 129c57c7c9633..c3c77ebb9fc8d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -123,7 +123,7 @@ dependencies = [ [[package]] name = "anemo" version = "0.0.0" -source = "git+https://github.com/mystenlabs/anemo.git?rev=47c5cbd4a612a0ee8bd9ae61a4673e6b47555928#47c5cbd4a612a0ee8bd9ae61a4673e6b47555928" +source = "git+https://github.com/mystenlabs/anemo.git?rev=0e0ef7054082a6f5a8921688e3d568761bc3be21#0e0ef7054082a6f5a8921688e3d568761bc3be21" dependencies = [ "anyhow", "async-trait", @@ -155,7 +155,7 @@ dependencies = [ [[package]] name = "anemo-build" version = "0.0.0" -source = "git+https://github.com/mystenlabs/anemo.git?rev=47c5cbd4a612a0ee8bd9ae61a4673e6b47555928#47c5cbd4a612a0ee8bd9ae61a4673e6b47555928" +source = "git+https://github.com/mystenlabs/anemo.git?rev=0e0ef7054082a6f5a8921688e3d568761bc3be21#0e0ef7054082a6f5a8921688e3d568761bc3be21" dependencies = [ "prettyplease", "proc-macro2 1.0.49", @@ -166,7 +166,7 @@ dependencies = [ [[package]] name = "anemo-tower" version = "0.0.0" -source = "git+https://github.com/mystenlabs/anemo.git?rev=47c5cbd4a612a0ee8bd9ae61a4673e6b47555928#47c5cbd4a612a0ee8bd9ae61a4673e6b47555928" +source = "git+https://github.com/mystenlabs/anemo.git?rev=0e0ef7054082a6f5a8921688e3d568761bc3be21#0e0ef7054082a6f5a8921688e3d568761bc3be21" dependencies = [ "anemo", "bytes", diff --git a/Cargo.toml b/Cargo.toml index cefee232c572a..b3baf49c6c9fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -130,9 +130,9 @@ fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "f451422b fastcrypto-zkp = { git = "https://github.com/MystenLabs/fastcrypto", rev = "f451422b7f15e75e055a1830cbe5d1547fa87b74", package = "fastcrypto-zkp" } # anemo dependencies -anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "47c5cbd4a612a0ee8bd9ae61a4673e6b47555928" } -anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "47c5cbd4a612a0ee8bd9ae61a4673e6b47555928" } -anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "47c5cbd4a612a0ee8bd9ae61a4673e6b47555928" } +anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "0e0ef7054082a6f5a8921688e3d568761bc3be21" } +anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "0e0ef7054082a6f5a8921688e3d568761bc3be21" } +anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "0e0ef7054082a6f5a8921688e3d568761bc3be21" } # Use the same workspace-hack across crates. workspace-hack = { path = "crates/workspace-hack" } diff --git a/crates/workspace-hack/Cargo.toml b/crates/workspace-hack/Cargo.toml index e4d037a3d0ac1..4e72aed66a429 100644 --- a/crates/workspace-hack/Cargo.toml +++ b/crates/workspace-hack/Cargo.toml @@ -26,8 +26,8 @@ aho-corasick = { version = "0.7" } aliasable = { version = "0.1" } alloc-no-stdlib = { version = "2", default-features = false } alloc-stdlib = { version = "0.2", default-features = false } -anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "47c5cbd4a612a0ee8bd9ae61a4673e6b47555928", default-features = false } -anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "47c5cbd4a612a0ee8bd9ae61a4673e6b47555928", default-features = false } +anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "0e0ef7054082a6f5a8921688e3d568761bc3be21", default-features = false } +anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "0e0ef7054082a6f5a8921688e3d568761bc3be21", default-features = false } anes = { version = "0.1" } ansi_term = { version = "0.12", default-features = false } anyhow = { version = "1", features = ["backtrace"] } @@ -673,9 +673,9 @@ aho-corasick = { version = "0.7" } aliasable = { version = "0.1" } alloc-no-stdlib = { version = "2", default-features = false } alloc-stdlib = { version = "0.2", default-features = false } -anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "47c5cbd4a612a0ee8bd9ae61a4673e6b47555928", default-features = false } -anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "47c5cbd4a612a0ee8bd9ae61a4673e6b47555928", default-features = false } -anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "47c5cbd4a612a0ee8bd9ae61a4673e6b47555928", default-features = false } +anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "0e0ef7054082a6f5a8921688e3d568761bc3be21", default-features = false } +anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "0e0ef7054082a6f5a8921688e3d568761bc3be21", default-features = false } +anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "0e0ef7054082a6f5a8921688e3d568761bc3be21", default-features = false } anes = { version = "0.1" } ansi_term = { version = "0.12", default-features = false } anyhow = { version = "1", features = ["backtrace"] } diff --git a/narwhal/primary/src/primary.rs b/narwhal/primary/src/primary.rs index 873635a73cbd9..6f875497c18c8 100644 --- a/narwhal/primary/src/primary.rs +++ b/narwhal/primary/src/primary.rs @@ -319,6 +319,7 @@ impl Primary { // Set a default timeout of 300s for all RPC requests config.inbound_request_timeout_ms = Some(300_000); config.outbound_request_timeout_ms = Some(300_000); + config.shutdown_idle_timeout_ms = Some(1_000); config }; diff --git a/narwhal/worker/src/worker.rs b/narwhal/worker/src/worker.rs index ca5789579fba8..1b5c96c5cb5b6 100644 --- a/narwhal/worker/src/worker.rs +++ b/narwhal/worker/src/worker.rs @@ -224,6 +224,7 @@ impl Worker { // Set a default timeout of 300s for all RPC requests config.inbound_request_timeout_ms = Some(300_000); config.outbound_request_timeout_ms = Some(300_000); + config.shutdown_idle_timeout_ms = Some(1_000); config };