]> granicus.if.org Git - transmission/commitdiff
(trunk libT) probable fix for #1631
authorCharles Kerr <charles@transmissionbt.com>
Tue, 30 Dec 2008 01:02:53 +0000 (01:02 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Tue, 30 Dec 2008 01:02:53 +0000 (01:02 +0000)
libtransmission/web.c

index b03929abc4100ac49b7c4d06e7bbd2d498e5c1c7..ee11565c6c43cd933af861cda850535548a9cc6d 100644 (file)
@@ -126,7 +126,7 @@ addTask( void * vtask )
         }
 
         curl_easy_setopt( easy, CURLOPT_DNS_CACHE_TIMEOUT, 3600L );
-        curl_easy_setopt( easy, CURLOPT_CONNECTTIMEOUT, 60L );
+        curl_easy_setopt( easy, CURLOPT_CONNECTTIMEOUT, 120L );
         curl_easy_setopt( easy, CURLOPT_FOLLOWLOCATION, 1L );
         curl_easy_setopt( easy, CURLOPT_FORBID_REUSE, 1L );
         curl_easy_setopt( easy, CURLOPT_MAXREDIRS, 16L );
@@ -134,6 +134,7 @@ addTask( void * vtask )
         curl_easy_setopt( easy, CURLOPT_PRIVATE, task );
         curl_easy_setopt( easy, CURLOPT_SSL_VERIFYHOST, 0L );
         curl_easy_setopt( easy, CURLOPT_SSL_VERIFYPEER, 0L );
+        curl_easy_setopt( easy, CURLOPT_TIMEOUT, 240L );
         curl_easy_setopt( easy, CURLOPT_URL, task->url );
         curl_easy_setopt( easy, CURLOPT_USERAGENT,
                                            TR_NAME "/" LONG_VERSION_STRING );