diff options
author | James Bursa <james@netsurf-browser.org> | 2003-08-28 19:20:23 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-08-28 19:20:23 +0000 |
commit | 05891b85d2f0c4674c3e306e337e720b3241e4ff (patch) | |
tree | cca51adac13099e360991a5c30177706cf5f7c2a /content/fetch.c | |
parent | 1548c232caffc716d66b04c0bf8bd3dd9ecfe9aa (diff) | |
download | netsurf-05891b85d2f0c4674c3e306e337e720b3241e4ff.tar.gz netsurf-05891b85d2f0c4674c3e306e337e720b3241e4ff.tar.bz2 |
[project @ 2003-08-28 19:20:23 by bursa]
Add transfer time outs.
svn path=/import/netsurf/; revision=253
Diffstat (limited to 'content/fetch.c')
-rw-r--r-- | content/fetch.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/fetch.c b/content/fetch.c index 14c61fee7..68fdb6b89 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -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; |