projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
519f1ea
)
Abort curl transfers if they drop below 1000B/s for more than 60s.
author
Ben Kibbey
<benkibbey@users.sourceforge.net>
Tue, 5 Oct 2010 19:09:05 +0000
(12:09 -0700)
committer
Brenden Matthews
<brenden@diddyinc.com>
Tue, 5 Oct 2010 19:09:48 +0000
(12:09 -0700)
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
src/ccurl_thread.c
patch
|
blob
|
history
diff --git
a/src/ccurl_thread.c
b/src/ccurl_thread.c
index
a062899
..
fa1efcb
100644
(file)
--- a/
src/ccurl_thread.c
+++ b/
src/ccurl_thread.c
@@
-131,6
+131,8
@@
void ccurl_fetch_data(ccurl_location_t *curloc)
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *) &chunk);
curl_easy_setopt(curl, CURLOPT_USERAGENT, "conky-curl/1.0");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
+ curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1000);
+ curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 60);
res = curl_easy_perform(curl);
if (res == CURLE_OK && chunk.size) {