Skip to content

Commit

Permalink
fix(ssh): increase the default idle-timeout to 10 minutes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aymanbagabas committed Jul 20, 2023
1 parent d0afaa0 commit 8d41446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8d41446

Please sign in to comment.