Changeset 10089


Ignore:
Timestamp:
Feb 3, 2010, 3:38:13 AM (12 years ago)
Author:
charles
Message:

(trunk libT) experimental commit for faster tracker announces

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r10074 r10089  
    5858
    5959    /* how many scrapes we allow at one time */
    60     MAX_CONCURRENT_SCRAPES = 96,
     60    MAX_CONCURRENT_SCRAPES = 48,
    6161
    6262    /* how many announces we allow at one time */
    63     MAX_CONCURRENT_ANNOUNCES = 96,
     63    MAX_CONCURRENT_ANNOUNCES = 48,
    6464
    6565    /* if a tracker takes more than this long to respond,
  • trunk/libtransmission/web.c

    r10033 r10089  
    3030    TR_MEMORY_TRASH = 0xCC,
    3131
    32     DEFAULT_TIMER_MSEC = 1500, /* arbitrary */
     32    DEFAULT_TIMER_MSEC = 250, /* arbitrary */
    3333
    3434    MIN_DNS_CACHE_TIME = 60 * 60 * 24
     
    379379        tr_timerAdd( &task->timer_event, timeout, 0 );
    380380
    381         curl_easy_setopt( e, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
    382381        curl_easy_setopt( e, CURLOPT_SOCKOPTFUNCTION, sockoptfunction );
    383382        curl_easy_setopt( e, CURLOPT_SOCKOPTDATA, task );
     
    387386        curl_easy_setopt( e, CURLOPT_FOLLOWLOCATION, 1L );
    388387        curl_easy_setopt( e, CURLOPT_AUTOREFERER, 1L );
    389         curl_easy_setopt( e, CURLOPT_FORBID_REUSE, 1L );
    390         curl_easy_setopt( e, CURLOPT_MAXREDIRS, -1L );
     388        curl_easy_setopt( e, CURLOPT_MAXREDIRS, 4L );
    391389        curl_easy_setopt( e, CURLOPT_NOSIGNAL, 1L );
    392390        curl_easy_setopt( e, CURLOPT_PRIVATE, task );
Note: See TracChangeset for help on using the changeset viewer.