the runtime your coding agents live on
Rust agentagent-orchestrationaiai-agentsclaude-codeclicodexcoding-agentsdeveloper-toolsdevtoolsmultiplexerrustterminalterminal-multiplexerterminal-uitmuxtuiworkspace-manager
fix: allow slow server shutdowns
Ogulcan Celik64de9279e39c
diff --git a/src/session.rs b/src/session.rsindex 8abda3d18..09657fa0c 100644--- a/src/session.rs+++ b/src/session.rs@@ -11,7 +11,7 @@ pub const SESSION_ENV_VAR: &str = "HERDR_SESSION";pub const DEFAULT_SESSION_NAME: &str = "default";const MAX_SESSION_NAME_LEN: usize = 64;-const STOP_WAIT_TIMEOUT: Duration = Duration::from_secs(2);+const STOP_WAIT_TIMEOUT: Duration = Duration::from_secs(15);const STOP_WAIT_POLL: Duration = Duration::from_millis(25);const MIN_SOCKET_TIMEOUT: Duration = Duration::from_millis(1);@@ -494,6 +494,11 @@ mod tests {(client, server, path)}+ #[test]+ fn stop_wait_timeout_allows_slow_graceful_shutdown() {+ assert_eq!(STOP_WAIT_TIMEOUT, Duration::from_secs(15));+ }+#[test]fn stop_request_errors_wait_for_socket_state() {for kind in [