1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

(trunk daemon): #1899: if the daemon isn't responding, timeout transmission-remote after 60 seconds.

This commit is contained in:
Charles Kerr 2009-03-10 00:10:20 +00:00
parent c756e244b3
commit e037e58411

View file

@ -1291,6 +1291,7 @@ processRequests( const char * host,
curl_easy_setopt( curl, CURLOPT_URL, url ); curl_easy_setopt( curl, CURLOPT_URL, url );
curl_easy_setopt( curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL ); curl_easy_setopt( curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL );
curl_easy_setopt( curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY ); curl_easy_setopt( curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
curl_easy_setopt( curl, CURLOPT_TIMEOUT, 60L );
if( netrc ) if( netrc )
curl_easy_setopt( curl, CURLOPT_NETRC_FILE, netrc ); curl_easy_setopt( curl, CURLOPT_NETRC_FILE, netrc );
if( auth ) if( auth )