From b387c726b4fcb54dd30b2fa88c05f39d418db32c Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 13 Dec 2010 18:09:26 +0000 Subject: [PATCH] curlopt_forbid_reuse --- direct/src/autorestart/autorestart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/direct/src/autorestart/autorestart.c b/direct/src/autorestart/autorestart.c index c8bce825a2..bfcad109de 100644 --- a/direct/src/autorestart/autorestart.c +++ b/direct/src/autorestart/autorestart.c @@ -233,6 +233,8 @@ do_watchdog(int *status_ptr) { curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error_buffer); curl_easy_setopt(curl, CURLOPT_USERAGENT, "autorestart"); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); + curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 1); + curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 1); res = curl_easy_perform(curl); while (res == 0) {