]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix(http-storage): Enable keep-alive again after fixing SIGPIPE issue
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 9 Sep 2021 19:35:46 +0000 (21:35 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 9 Sep 2021 19:35:46 +0000 (21:35 +0200)
See #931.

src/storage/secondary/HttpStorage.cpp

index bf7e5802b00dc6beec9a9914eaca41d18c0d9784..6b3d0026884456e1038daaf8ddbc4226882b6b01 100644 (file)
@@ -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;