From: Joel Rosdahl Date: Thu, 9 Sep 2021 19:35:46 +0000 (+0200) Subject: fix(http-storage): Enable keep-alive again after fixing SIGPIPE issue X-Git-Tag: v4.4.1~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a36bd475b92776f1635a45b2620f11e410b2e394;p=thirdparty%2Fccache.git fix(http-storage): Enable keep-alive again after fixing SIGPIPE issue See #931. --- diff --git a/src/storage/secondary/HttpStorage.cpp b/src/storage/secondary/HttpStorage.cpp index bf7e5802b..6b3d00268 100644 --- a/src/storage/secondary/HttpStorage.cpp +++ b/src/storage/secondary/HttpStorage.cpp @@ -110,6 +110,7 @@ HttpStorageBackend::HttpStorageBackend(const Params& params) m_http_client.set_default_headers({ {"User-Agent", FMT("{}/{}", CCACHE_NAME, CCACHE_VERSION)}, }); + m_http_client.set_keep_alive(true); auto connect_timeout = k_default_connect_timeout; auto operation_timeout = k_default_operation_timeout;