ansible: Use HTTP/1.1 for git http operations on Debian bookworm
authorKienan Stewart <kstewart@efficios.com>
Mon, 11 Dec 2023 14:40:35 +0000 (09:40 -0500)
committerKienan Stewart <kstewart@efficios.com>
Mon, 11 Dec 2023 15:42:38 +0000 (10:42 -0500)
When using HTTP/2 for git operations, git's use of libcurl can result
in deadlocks with libcurl 7.84-8.4 as libcurl may call the read
callback multiple times after EOF.

@see https://lore.kernel.org/git/CAGE_+C5u9H8m5faK1vXKk6QTyjcHgKHqxOZy5ptzsYbF_0yrCQ@mail.gmail.com/
@see https://curl.se/mail/lib-2023-11/0017.html
@see https://github.com/curl/curl/pull/12363

Fixes #1532

Change-Id: I1236d7bc8480c2b8316891b2572ce93f999ff4e4

automation/ansible/roles/common/tasks/setup-Debian.yml

index d0df1c170a59e04e1e36a7075f229fce2b3a00cd..69cd5a7d062bd4d65db9a0491719923a2c92523e 100644 (file)
@@ -97,3 +97,8 @@
         repo: 'deb http://deb.debian.org/debian bookworm-backports main'
     - ansible.builtin.apt:
         upgrade: 'yes'
+    - name: Use HTTP/1.1 with git HTTP operations
+      community.general.git_config:
+        file: '/etc/gitconfig'
+        name: 'http.version'
+        value: 'HTTP/1.1'
This page took 0.023975 seconds and 4 git commands to generate.