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.
This commit is contained in:
Alexis Sellier 2023-04-13 15:26:43 +02:00
parent 273ce2744a
commit ac3a03fea6
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -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")