Changeset 10431


Ignore:
Timestamp:
Mar 31, 2010, 7:59:51 PM (11 years ago)
Author:
charles
Message:

(trunk daemon) #3070 "--blocklist-update timeout in transmission-remote" -- fixed in trunk for 2.00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r10416 r10431  
    18721872    curl_easy_setopt( curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL );
    18731873    curl_easy_setopt( curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
    1874     curl_easy_setopt( curl, CURLOPT_TIMEOUT, 300L );
    18751874    curl_easy_setopt( curl, CURLOPT_VERBOSE, debug );
    18761875    curl_easy_setopt( curl, CURLOPT_ENCODING, "" ); /* "" tells curl to fill in the blanks with what it was compiled to support */
     
    18881887}
    18891888
     1889static long
     1890getTimeoutSecs( const char * req )
     1891{
     1892  if( strstr( req, "\"method\":\"blocklist-update\"" ) != NULL )
     1893    return 300L;
     1894
     1895  return 60L; /* default value */
     1896}
    18901897
    18911898static int
     
    19131920
    19141921        curl_easy_setopt( curl, CURLOPT_POSTFIELDS, reqs[i] );
     1922        curl_easy_setopt( curl, CURLOPT_TIMEOUT, getTimeoutSecs( reqs[i] ) );
    19151923
    19161924        if( debug )
Note: See TracChangeset for help on using the changeset viewer.