58ac5a32474f5dea60b86cf75209ce83478b7ae9

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

Message

fix(server): remove ssh idle timeout

Using a timeout with bubbletea breaks the terminal since the connection
gets terminated without quitting bubbletea and restoring the terminal

Diff

 1diff --git a/server/config/config.go b/server/config/config.go
 2index e2435bd48c8be9380c583d5d1b394457bb477305..4c2373c52efc60a26f87c72cd8a92f57f8e4d739 100644
 3--- a/server/config/config.go
 4+++ b/server/config/config.go
 5@@ -124,7 +124,7 @@ func parseConfig(path string) (*Config, error) {
 6 			PublicURL:   "ssh://localhost:23231",
 7 			KeyPath:     filepath.Join("ssh", "soft_serve_host_ed25519"),
 8 			MaxTimeout:  0,
 9-			IdleTimeout: 120,
10+			IdleTimeout: 0,
11 		},
12 		Git: GitConfig{
13 			ListenAddr:     ":9418",
14diff --git a/server/config/file.go b/server/config/file.go
15index 81a0931e3bc489a1f502ca355ef309733577f836..eb462ae7061b7477ab999802b5cb9efa212eab11 100644
16--- a/server/config/file.go
17+++ b/server/config/file.go
18@@ -29,6 +29,7 @@ ssh:
19   max_timeout: {{ .SSH.MaxTimeout }}
20 
21   # The number of seconds a connection can be idle before it is closed.
22+  # A value of 0 means no timeout.
23   idle_timeout: {{ .SSH.IdleTimeout }}
24 
25 # The Git daemon configuration.