From ac3a03fea6cae9d115a117da3aa9ebe1b12af26b Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Thu, 13 Apr 2023 15:26:43 +0200 Subject: [PATCH] node: Set git-daemon keep-alive Send a keep-alive packet every 3 seconds to make sure the client doesn't timeout during pack building. --- radicle-node/src/runtime.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radicle-node/src/runtime.rs b/radicle-node/src/runtime.rs index b2ab8608..e27a93ad 100644 --- a/radicle-node/src/runtime.rs +++ b/radicle-node/src/runtime.rs @@ -302,6 +302,9 @@ pub mod daemon { .envs(radicle::git::env::GIT_DEFAULT_CONFIG) .env("GIT_PROTOCOL", "version=2") .current_dir(storage) + // Send a keep-alive packet every 3 seconds to make sure the client doesn't + // timeout during pack building. + .args(["-c", "uploadpack.keepAlive=3"]) .arg("daemon") // Make all git directories available. .arg("--export-all")