From bf701bbb55889e074be2c97f7c5155d1cfd855d7 Mon Sep 17 00:00:00 2001 From: Igor Drozdov Date: Sat, 21 May 2022 10:19:35 +0400 Subject: Disable ClientAliveInterval by default It was added to fix context canceled issue, but since the issue has been fixed differently, let's disable it by default --- config.yml.example | 2 +- internal/config/config.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config.yml.example b/config.yml.example index 1fdb6f9..60fd9aa 100644 --- a/config.yml.example +++ b/config.yml.example @@ -76,7 +76,7 @@ sshd: web_listen: "localhost:9122" # Maximum number of concurrent sessions allowed on a single SSH connection. Defaults to 10. concurrent_sessions_limit: 10 - # Sets an interval after which server will send keepalive message to a client + # Sets an interval after which server will send keepalive message to a client. Disabled by default client_alive_interval: 15 # The server waits for this time (in seconds) for the ongoing connections to complete before shutting down. Defaults to 10. grace_period: 10 diff --git a/internal/config/config.go b/internal/config/config.go index 9e95931..fab3f34 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -86,7 +86,6 @@ var ( WebListen: "localhost:9122", ConcurrentSessionsLimit: 10, GracePeriod: yamlDuration(10 * time.Second), - ClientAliveInterval: yamlDuration(15 * time.Second), ProxyHeaderTimeout: yamlDuration(500 * time.Millisecond), ReadinessProbe: "/start", LivenessProbe: "/health", -- cgit v1.2.1