Kaynağa Gözat

More curl timeout tweaks.

default 3 yıl önce
ebeveyn
işleme
b564d8bcb7
1 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 1 3
      xs_curl.h

+ 1 - 3
xs_curl.h

@@ -101,9 +101,7 @@ d_char *xs_http_request(char *method, char *url, d_char *headers,
 
 
     curl_easy_setopt(curl, CURLOPT_URL, url);
     curl_easy_setopt(curl, CURLOPT_URL, url);
 
 
-#ifdef FORCE_TIMEOUT
-    curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);
-#endif
+    curl_easy_setopt(curl, CURLOPT_TIMEOUT, 8L);
 
 
 #ifdef FORCE_HTTP_1_1
 #ifdef FORCE_HTTP_1_1
     /* force HTTP/1.1 */
     /* force HTTP/1.1 */