From cb4111383fc157dcfda1783fa0a795eaa488811e Mon Sep 17 00:00:00 2001 From: kokan Date: Sun, 17 Dec 2017 18:17:07 +0100 Subject: [PATCH] fix(github): libcurl stuck at curl_easy_perform Signed-off-by: kokan --- src/utils/http.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/http.cpp b/src/utils/http.cpp index f6fe6779..15b6b7e6 100644 --- a/src/utils/http.cpp +++ b/src/utils/http.cpp @@ -16,6 +16,7 @@ http_downloader::http_downloader(int connection_timeout) { curl_easy_setopt(m_curl, CURLOPT_NOSIGNAL, true); curl_easy_setopt(m_curl, CURLOPT_USERAGENT, "polybar/" GIT_TAG); curl_easy_setopt(m_curl, CURLOPT_WRITEFUNCTION, http_downloader::write); + curl_easy_setopt(m_curl, CURLOPT_FORBID_REUSE, true); } http_downloader::~http_downloader() {