tell webcurl to timeout tracker requests after 30 seconds

This commit is contained in:
Charles Kerr 2008-05-08 17:05:43 +00:00
parent f5725af93a
commit f48b2b24e9
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ addTask( void * vtask )
dbgmsg( "adding task #%lu [%s] (%d remain)", task->tag, task->url, web->remain );
ch = curl_easy_init( );
curl_easy_setopt( ch, CURLOPT_TIMEOUT, 30 );
curl_easy_setopt( ch, CURLOPT_PRIVATE, task );
curl_easy_setopt( ch, CURLOPT_URL, task->url );
curl_easy_setopt( ch, CURLOPT_WRITEFUNCTION, writeFunc );