Fix remote server exit timeout (#47660) (cherry-pick to preview) (#47662)
zed-zippy[bot]
,
John Tur
, and
Lukas Wirth
created
Cherry-pick of #47660 to preview
----
Was changed by mistake
Release Notes:
- N/A
Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
Co-authored-by: John Tur <john-tur@outlook.com>
Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
@@ -222,7 +222,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>();