mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 17:54:33 +03:00
[project @ 2003-08-28 19:20:23 by bursa]
Add transfer time outs. svn path=/import/netsurf/; revision=253
This commit is contained in:
parent
1548c232ca
commit
05891b85d2
@ -201,6 +201,14 @@ struct fetch * fetch_start(char *url, char *referer,
|
||||
code = curl_easy_setopt(fetch->curl_handle, CURLOPT_CAINFO, ca_bundle);
|
||||
assert(code == CURLE_OK);
|
||||
#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 */
|
||||
fetch->headers = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user