[project @ 2003-08-28 19:20:23 by bursa]

Add transfer time outs.

svn path=/import/netsurf/; revision=253
This commit is contained in:
James Bursa 2003-08-28 19:20:23 +00:00
parent 1548c232ca
commit 05891b85d2
1 changed files with 8 additions and 0 deletions

View File

@ -201,6 +201,14 @@ struct fetch * fetch_start(char *url, char *referer,
code = curl_easy_setopt(fetch->curl_handle, CURLOPT_CAINFO, ca_bundle); code = curl_easy_setopt(fetch->curl_handle, CURLOPT_CAINFO, ca_bundle);
assert(code == CURLE_OK); assert(code == CURLE_OK);
#endif #endif
code = curl_easy_setopt(fetch->curl_handle, CURLOPT_LOW_SPEED_LIMIT, 1L);
assert(code == CURLE_OK);
code = curl_easy_setopt(fetch->curl_handle, CURLOPT_LOW_SPEED_TIME, 60L);
assert(code == CURLE_OK);
code = curl_easy_setopt(fetch->curl_handle, CURLOPT_NOSIGNAL, 1L);
assert(code == CURLE_OK);
code = curl_easy_setopt(fetch->curl_handle, CURLOPT_CONNECTTIMEOUT, 60L);
assert(code == CURLE_OK);
/* custom request headers */ /* custom request headers */
fetch->headers = 0; fetch->headers = 0;