Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix remote server exit timeout (#47660)

John Tur51399d68a8c9
diff --git a/crates/remote_server/src/server.rs b/crates/remote_server/src/server.rs
index 189ee7b3bd9..53aebcf198d 100644
--- a/crates/remote_server/src/server.rs
+++ b/crates/remote_server/src/server.rs
@@ -297,7 +297,7 @@ fn start_server(
is_wsl_interop: bool,
) -> AnyProtoClient {
// This is the server idle timeout. If no connection comes in this timeout, the server will shut down.
- const IDLE_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(6);
+ const IDLE_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(10 * 60);
let (incoming_tx, incoming_rx) = mpsc::unbounded::<Envelope>();
let (outgoing_tx, mut outgoing_rx) = mpsc::unbounded::<Envelope>();