- Timestamp:
- May 1, 2010, 4:36:01 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.9x/daemon/remote.c
r10288 r10582 1841 1841 curl_easy_setopt( curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL ); 1842 1842 curl_easy_setopt( curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY ); 1843 curl_easy_setopt( curl, CURLOPT_TIMEOUT, 60L );1844 1843 curl_easy_setopt( curl, CURLOPT_VERBOSE, debug ); 1845 1844 curl_easy_setopt( curl, CURLOPT_ENCODING, "" ); /* "" tells curl to fill in the blanks with what it was compiled to support */ … … 1857 1856 } 1858 1857 1858 static long 1859 getTimeoutSecs( const char * req ) 1860 { 1861 if( strstr( req, "\"method\":\"blocklist-update\"" ) != NULL ) 1862 return 300L; 1863 1864 return 60L; /* default value */ 1865 } 1859 1866 1860 1867 static int … … 1882 1889 1883 1890 curl_easy_setopt( curl, CURLOPT_POSTFIELDS, reqs[i] ); 1891 curl_easy_setopt( curl, CURLOPT_TIMEOUT, getTimeoutSecs( reqs[i] ) ); 1884 1892 1885 1893 if( debug )
Note: See TracChangeset
for help on using the changeset viewer.