Bug #26
HTTP connection not closed
| Status: | Resolved | Start: | 2008-08-17 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | Global | Spent time: | 0.25 hour | |
| Target version: | 0.1 | Estimated time: | 1.00 hour |
Description
When the crl is downloaded, the connection to retrieve it is not cleanly closed
History
Updated by Mathieu Virbel almost 2 years ago
diff --git a/common/download.cpp b/common/download.cpp
index bd8238f..e9dfb53 100644
--- a/common/download.cpp
+++ b/common/download.cpp
@@ -59,6 +59,7 @@ bool Download::Get(const char* url, const char* save_as)
curl_easy_setopt(curl, CURLOPT_FAILONERROR, true);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Peerfuse");
+ curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 1);
// curl_easy_setopt(curl, CURLOPT_PROXY, "address");
// curl_easy_setopt(curl, CURLOPT_PROXYPORT, 3128);
Updated by Mathieu Virbel almost 2 years ago
- Status changed from New to 3
Updated by Romain Bignon almost 2 years ago
- Status changed from 3 to Resolved