From b835268fbda571674963a41218b2cc623eb1f535 Mon Sep 17 00:00:00 2001 From: Paul Sadauskas Date: Sun, 14 Jun 2009 20:22:12 -0600 Subject: [PATCH] http plugin: Dont hold open curl connections. It ties up apache --- src/http.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2