From 58ac5a32474f5dea60b86cf75209ce83478b7ae9 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 27 Apr 2023 14:49:18 -0400 Subject: [PATCH] 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 --- server/config/config.go | 2 +- server/config/file.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/config/config.go b/server/config/config.go index e2435bd48c8be9380c583d5d1b394457bb477305..4c2373c52efc60a26f87c72cd8a92f57f8e4d739 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -124,7 +124,7 @@ func parseConfig(path string) (*Config, error) { PublicURL: "ssh://localhost:23231", KeyPath: filepath.Join("ssh", "soft_serve_host_ed25519"), MaxTimeout: 0, - IdleTimeout: 120, + IdleTimeout: 0, }, Git: GitConfig{ ListenAddr: ":9418", diff --git a/server/config/file.go b/server/config/file.go index 81a0931e3bc489a1f502ca355ef309733577f836..eb462ae7061b7477ab999802b5cb9efa212eab11 100644 --- a/server/config/file.go +++ b/server/config/file.go @@ -29,6 +29,7 @@ ssh: max_timeout: {{ .SSH.MaxTimeout }} # The number of seconds a connection can be idle before it is closed. + # A value of 0 means no timeout. idle_timeout: {{ .SSH.IdleTimeout }} # The Git daemon configuration.