From: Paul Sadauskas Date: Mon, 15 Jun 2009 02:22:12 +0000 (-0600) Subject: http plugin: Dont hold open curl connections. It ties up apache X-Git-Tag: collectd-4.8.0~26^2~27 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b835268fbda571674963a41218b2cc623eb1f535;p=collectd.git http plugin: Dont hold open curl connections. It ties up apache --- diff --git a/src/http.c b/src/http.c index d58eda47..a1d0e531 100644 --- 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);