Changeset 10298
- Timestamp:
- Mar 1, 2010, 3:29:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/web.c
r10247 r10298 32 32 DEFAULT_TIMER_MSEC = 250, /* arbitrary */ 33 33 34 MIN_DNS_CACHE_TIME = 60 * 60 * 2434 DNS_CACHE_FAIL_TTL = 120 /* seconds */ 35 35 }; 36 36 … … 218 218 item->host = tr_strdup( host ); 219 219 item->resolved_host = NULL; 220 item->expiration = tr_time( ) + MIN_DNS_CACHE_TIME;220 item->expiration = tr_time( ) + DNS_CACHE_FAIL_TTL; 221 221 item->success = FALSE; 222 222 tr_ptrArrayInsertSorted( cache, item, dns_cache_compare ); … … 229 229 { 230 230 char * ret = NULL; 231 232 ttl = MAX( MIN_DNS_CACHE_TIME, ttl );233 231 234 232 if( task->session->web != NULL ) … … 386 384 curl_easy_setopt( e, CURLOPT_WRITEDATA, task ); 387 385 curl_easy_setopt( e, CURLOPT_WRITEFUNCTION, writeFunc ); 388 curl_easy_setopt( e, CURLOPT_DNS_CACHE_TIMEOUT, MIN_DNS_CACHE_TIME );389 386 curl_easy_setopt( e, CURLOPT_FOLLOWLOCATION, 1L ); 390 387 curl_easy_setopt( e, CURLOPT_AUTOREFERER, 1L );
Note: See TracChangeset
for help on using the changeset viewer.