From 68ad6f452c4cbc4e1db0757be586f571a0251a17 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 30 Dec 2008 01:02:53 +0000 Subject: [PATCH] (trunk libT) probable fix for #1631 --- libtransmission/web.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libtransmission/web.c b/libtransmission/web.c index b03929abc..ee11565c6 100644 --- a/libtransmission/web.c +++ b/libtransmission/web.c @@ -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 ); -- 2.40.0