tell webcurl to timeout tracker requests after 30 seconds
This commit is contained in:
parent
f5725af93a
commit
f48b2b24e9
|
@ -142,6 +142,7 @@ addTask( void * vtask )
|
||||||
dbgmsg( "adding task #%lu [%s] (%d remain)", task->tag, task->url, web->remain );
|
dbgmsg( "adding task #%lu [%s] (%d remain)", task->tag, task->url, web->remain );
|
||||||
|
|
||||||
ch = curl_easy_init( );
|
ch = curl_easy_init( );
|
||||||
|
curl_easy_setopt( ch, CURLOPT_TIMEOUT, 30 );
|
||||||
curl_easy_setopt( ch, CURLOPT_PRIVATE, task );
|
curl_easy_setopt( ch, CURLOPT_PRIVATE, task );
|
||||||
curl_easy_setopt( ch, CURLOPT_URL, task->url );
|
curl_easy_setopt( ch, CURLOPT_URL, task->url );
|
||||||
curl_easy_setopt( ch, CURLOPT_WRITEFUNCTION, writeFunc );
|
curl_easy_setopt( ch, CURLOPT_WRITEFUNCTION, writeFunc );
|
||||||
|
|
Loading…
Reference in New Issue