Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Increase reconnect timeout
Juliab9110c9268bd
diff --git a/crates/call/src/room.rs b/crates/call/src/room.rsindex 06680c1dcb8..901ae08fc04 100644--- a/crates/call/src/room.rs+++ b/crates/call/src/room.rs@@ -20,7 +20,7 @@ use project::Project;use std::{mem, sync::Arc, time::Duration};use util::{post_inc, ResultExt, TryFutureExt};-pub const RECONNECT_TIMEOUT: Duration = client::RECEIVE_TIMEOUT;+pub const RECONNECT_TIMEOUT: Duration = Duration::from_secs(30);#[derive(Clone, Debug, PartialEq, Eq)]pub enum Event {diff --git a/crates/collab/src/rpc.rs b/crates/collab/src/rpc.rsindex 01d24024eb7..710ddcb8900 100644--- a/crates/collab/src/rpc.rs+++ b/crates/collab/src/rpc.rs@@ -57,7 +57,7 @@ use tokio::sync::watch;use tower::ServiceBuilder;use tracing::{info_span, instrument, Instrument};-pub const RECONNECT_TIMEOUT: Duration = Duration::from_secs(5);+pub const RECONNECT_TIMEOUT: Duration = Duration::from_secs(30);pub const CLEANUP_TIMEOUT: Duration = Duration::from_secs(10);lazy_static! {diff --git a/crates/rpc/src/peer.rs b/crates/rpc/src/peer.rsindex 4740120fc44..0df87fd92d9 100644--- a/crates/rpc/src/peer.rs+++ b/crates/rpc/src/peer.rs@@ -114,7 +114,7 @@ pub struct ConnectionState {const KEEPALIVE_INTERVAL: Duration = Duration::from_secs(1);const WRITE_TIMEOUT: Duration = Duration::from_secs(2);-pub const RECEIVE_TIMEOUT: Duration = Duration::from_secs(5);+pub const RECEIVE_TIMEOUT: Duration = Duration::from_secs(10);impl Peer {pub fn new(epoch: u32) -> Arc<Self> {