ソースを参照

curlopt_forbid_reuse

David Rose 15 年 前
コミット
b387c726b4
1 ファイル変更2 行追加0 行削除
  1. 2 0
      direct/src/autorestart/autorestart.c

+ 2 - 0
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_ERRORBUFFER, error_buffer);
   curl_easy_setopt(curl, CURLOPT_USERAGENT, "autorestart");
   curl_easy_setopt(curl, CURLOPT_USERAGENT, "autorestart");
   curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
   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);
   res = curl_easy_perform(curl);
   while (res == 0) {
   while (res == 0) {