projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d939208
)
http plugin: Dont hold open curl connections. It ties up apache
author
Paul Sadauskas
<psadauskas@gmail.com>
Mon, 15 Jun 2009 02:22:12 +0000
(20:22 -0600)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 21 Aug 2009 06:41:53 +0000
(08:41 +0200)
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index
d58eda4
..
a1d0e53
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-54,6
+54,8
@@
static int http_init_curl(CURL *curl, char curl_errbuf[])
headers = curl_slist_append(headers, "Content-Type: text/csv");
curl_easy_setopt (curl, CURLOPT_HTTPHEADER, headers);
+ curl_easy_setopt (curl, CURLOPT_FORBID_REUSE, 1);
+
curl_easy_setopt (curl, CURLOPT_ERRORBUFFER, curl_errbuf);
curl_easy_setopt (curl, CURLOPT_URL, location);