summaryrefslogtreecommitdiff
path: root/config.yml.example
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2022-05-11 20:25:57 +0400
committerIgor Drozdov <idrozdov@gitlab.com>2022-05-12 09:53:48 +0400
commita16dcb3e6ca3361ba23fabb369dc6566e693ba9d (patch)
tree4f861f7a8cc32105660feddefc8e9623ebd11028 /config.yml.example
parent42cf058b7292527b250d48167b2db5ec85736f37 (diff)
downloadgitlab-shell-a16dcb3e6ca3361ba23fabb369dc6566e693ba9d.tar.gz
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
Diffstat (limited to 'config.yml.example')
-rw-r--r--config.yml.example2
1 files changed, 2 insertions, 0 deletions
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".