Changeset 9058


Ignore:
Timestamp:
Sep 7, 2009, 9:51:23 PM (13 years ago)
Author:
charles
Message:

(1.7x libT) lower the time we'll wait on a nonresponsive tracker during an announce or scrape before giving the next announce a turn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7x/libtransmission/web.c

    r8986 r9058  
    3838{
    3939    /* arbitrary number */
    40     MAX_CONCURRENT_TASKS = 100,
     40    MAX_CONCURRENT_TASKS = 256,
    4141
    4242    /* arbitrary number */
     
    200200
    201201        /* set a time limit for announces & scrapes */
    202         if( strstr( task->url, "announce" ) )
    203             curl_easy_setopt( easy, CURLOPT_TIMEOUT, 120L );
    204         else if( strstr( task->url, "scrape" ) )
     202        if( strstr( task->url, "scrape" ) )
     203            curl_easy_setopt( easy, CURLOPT_TIMEOUT, 15L );
     204        else if( strstr( task->url, "announce" ) )
    205205            curl_easy_setopt( easy, CURLOPT_TIMEOUT, 30L );
     206        else
     207            curl_easy_setopt( easy, CURLOPT_TIMEOUT, 240L );
    206208
    207209        curl_easy_setopt( easy, CURLOPT_FOLLOWLOCATION, 1L );
     210        curl_easy_setopt( easy, CURLOPT_AUTOREFERER, 1L );
    208211        curl_easy_setopt( easy, CURLOPT_FORBID_REUSE, 1L );
    209         curl_easy_setopt( easy, CURLOPT_MAXREDIRS, 16L );
     212        curl_easy_setopt( easy, CURLOPT_MAXREDIRS, -1L );
    210213        curl_easy_setopt( easy, CURLOPT_NOSIGNAL, 1L );
    211214        curl_easy_setopt( easy, CURLOPT_PRIVATE, task );
Note: See TracChangeset for help on using the changeset viewer.