Code

http plugin: Dont hold open curl connections. It ties up apache
authorPaul Sadauskas <psadauskas@gmail.com>
Mon, 15 Jun 2009 02:22:12 +0000 (20:22 -0600)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 21 Aug 2009 06:41:53 +0000 (08:41 +0200)
src/http.c

index d58eda47abff8c750ef89afd73cf76c38a3f4a86..a1d0e5316f37706235317aaac2a0519db1f02ccd 100644 (file)
@@ -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);