mirror of
https://github.com/transmission/transmission
synced 2025-02-02 20:43:51 +00:00
(trunk libT) sync the announce/scrape timeout intervals in trunk with those in 1.7x
This commit is contained in:
parent
5ab720d87b
commit
3524ae637e
1 changed files with 7 additions and 4 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue