From 8d41446964fc2672f8ed374055381c641e39dff0 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 20 Jul 2023 16:42:43 -0400 Subject: [PATCH] fix(ssh): increase the default idle-timeout to 10 minutes This would close dangling SSH connections that last for more than 10 minutes. The only down side is that the connection will get closed without restoring the terminal for PTY sessions and the UI. --- server/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config/config.go b/server/config/config.go index d815dcc465bdfaa6e0529863cdd6b5d3773a432f..c269c63355ab32780e9a57d8eb46c006d4ba984b 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -285,7 +285,7 @@ func DefaultConfig() *Config { KeyPath: filepath.Join("ssh", "soft_serve_host_ed25519"), ClientKeyPath: filepath.Join("ssh", "soft_serve_client_ed25519"), MaxTimeout: 0, - IdleTimeout: 0, + IdleTimeout: 10 * 60, // 10 minutes }, Git: GitConfig{ ListenAddr: ":9418",