- Timestamp:
- Sep 7, 2009, 9:51:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7x/libtransmission/web.c
r8986 r9058 38 38 { 39 39 /* arbitrary number */ 40 MAX_CONCURRENT_TASKS = 100,40 MAX_CONCURRENT_TASKS = 256, 41 41 42 42 /* arbitrary number */ … … 200 200 201 201 /* set a time limit for announces & scrapes */ 202 if( strstr( task->url, " announce" ) )203 curl_easy_setopt( easy, CURLOPT_TIMEOUT, 1 20L );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" ) ) 205 205 curl_easy_setopt( easy, CURLOPT_TIMEOUT, 30L ); 206 else 207 curl_easy_setopt( easy, CURLOPT_TIMEOUT, 240L ); 206 208 207 209 curl_easy_setopt( easy, CURLOPT_FOLLOWLOCATION, 1L ); 210 curl_easy_setopt( easy, CURLOPT_AUTOREFERER, 1L ); 208 211 curl_easy_setopt( easy, CURLOPT_FORBID_REUSE, 1L ); 209 curl_easy_setopt( easy, CURLOPT_MAXREDIRS, 16L );212 curl_easy_setopt( easy, CURLOPT_MAXREDIRS, -1L ); 210 213 curl_easy_setopt( easy, CURLOPT_NOSIGNAL, 1L ); 211 214 curl_easy_setopt( easy, CURLOPT_PRIVATE, task );
Note: See TracChangeset
for help on using the changeset viewer.