diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2021-09-09 21:35:46 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2021-09-09 21:35:46 +0200 |
commit | a36bd475b92776f1635a45b2620f11e410b2e394 (patch) | |
tree | 475db578b25e2739478535a308e0a92186f61ba3 | |
parent | b2a88e7b885cd43882b525fdaf2b57dd931a0427 (diff) | |
download | ccache-a36bd475b92776f1635a45b2620f11e410b2e394.tar.gz |
fix(http-storage): Enable keep-alive again after fixing SIGPIPE issue
See #931.
-rw-r--r-- | src/storage/secondary/HttpStorage.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage/secondary/HttpStorage.cpp b/src/storage/secondary/HttpStorage.cpp index bf7e5802..6b3d0026 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; |