(trunk libT) sync the announce/scrape timeout intervals in trunk with those in 1.7x

This commit is contained in:
Charles Kerr 2009-09-08 18:39:20 +00:00
parent 5ab720d87b
commit 3524ae637e
1 changed files with 7 additions and 4 deletions

View File

@ -212,14 +212,17 @@ addTask( void * vtask )
curl_easy_setopt( easy, CURLOPT_CONNECTTIMEOUT, 60L );
/* set a time limit for announces & scrapes */
if( strstr( task->url, "announce" ) )
curl_easy_setopt( easy, CURLOPT_TIMEOUT, 120L );
else if( strstr( task->url, "scrape" ) )
if( strstr( task->url, "scrape" ) )
curl_easy_setopt( easy, CURLOPT_TIMEOUT, 15L );
else if( strstr( task->url, "announce" ) )
curl_easy_setopt( easy, CURLOPT_TIMEOUT, 30L );
else
curl_easy_setopt( easy, CURLOPT_TIMEOUT, 240L );
curl_easy_setopt( easy, CURLOPT_FOLLOWLOCATION, 1L );
curl_easy_setopt( easy, CURLOPT_AUTOREFERER, 1L );
curl_easy_setopt( easy, CURLOPT_FORBID_REUSE, 1L );
curl_easy_setopt( easy, CURLOPT_MAXREDIRS, 16L );
curl_easy_setopt( easy, CURLOPT_MAXREDIRS, -1L );
curl_easy_setopt( easy, CURLOPT_NOSIGNAL, 1L );
curl_easy_setopt( easy, CURLOPT_PRIVATE, task );
curl_easy_setopt( easy, CURLOPT_SSL_VERIFYHOST, 0L );