From 285e9901c691d922b8e3adaff28ec6604cd7e999 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sat, 22 Feb 2020 00:09:24 +0000 Subject: [PATCH] git: add potential workaround of keepalive race --- cookbooks/git/templates/default/apache.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbooks/git/templates/default/apache.erb b/cookbooks/git/templates/default/apache.erb index 9ec36f7d8..5aa08f465 100644 --- a/cookbooks/git/templates/default/apache.erb +++ b/cookbooks/git/templates/default/apache.erb @@ -47,6 +47,9 @@ SetEnv GIT_PROJECT_ROOT /var/lib/git SetEnv GIT_HTTP_EXPORT_ALL + # Keepalive should be larger than git config uploadpack.keepalive to avoid potential race on slower links + KeepAliveTimeout 60 + ScriptAlias /public /usr/lib/git-core/git-http-backend/public ScriptAlias /private /usr/lib/git-core/git-http-backend/private Alias /gitweb /usr/share/gitweb -- 2.45.1