8d41446964fc2672f8ed374055381c641e39dff0

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

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.

Diff

 1diff --git a/server/config/config.go b/server/config/config.go
 2index d815dcc465bdfaa6e0529863cdd6b5d3773a432f..c269c63355ab32780e9a57d8eb46c006d4ba984b 100644
 3--- a/server/config/config.go
 4+++ b/server/config/config.go
 5@@ -285,7 +285,7 @@ func DefaultConfig() *Config {
 6 			KeyPath:       filepath.Join("ssh", "soft_serve_host_ed25519"),
 7 			ClientKeyPath: filepath.Join("ssh", "soft_serve_client_ed25519"),
 8 			MaxTimeout:    0,
 9-			IdleTimeout:   0,
10+			IdleTimeout:   10 * 60, // 10 minutes
11 		},
12 		Git: GitConfig{
13 			ListenAddr:     ":9418",