From a16dcb3e6ca3361ba23fabb369dc6566e693ba9d Mon Sep 17 00:00:00 2001 From: Igor Drozdov Date: Wed, 11 May 2022 20:25:57 +0400 Subject: Implement ClientKeepAlive option Git clients sometimes open a connection and leave it idling, like when compressing objects. Settings like timeout client in HAProxy might cause these idle connections to be terminated. Let's send the keepalive message in order to prevent a client from closing --- config.yml.example | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.yml.example') diff --git a/config.yml.example b/config.yml.example index f23c5d1..a453c0a 100644 --- a/config.yml.example +++ b/config.yml.example @@ -76,6 +76,8 @@ 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 + 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 # The endpoint that returns 200 OK if the server is ready to receive incoming connections; otherwise, it returns 503 Service Unavailable. Defaults to "/start". -- cgit v1.2.1