summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-05-13 20:54:50 +0200
committerFlorian Pritz <bluewind@server-speed.net>2011-05-13 21:21:20 +0200
commit7191386fe7bec6c19f54767eb0b4b6acbf6a222d (patch)
tree73d433be549a12b70e3db9fe55e83e7b41e96392
parent406ed513b040749da6d1eeb48cb6625fbf867887 (diff)
time out after 30 sec of stalled uploadv0.7.3
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
-rw-r--r--fb-upload.c.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/fb-upload.c.in b/fb-upload.c.in
index a6410ee..b0a44ee 100644
--- a/fb-upload.c.in
+++ b/fb-upload.c.in
@@ -213,6 +213,8 @@ int main(int argc, char *argv[])
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback);
curl_easy_setopt(curl, CURLOPT_USERAGENT, userAgent);
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
+ curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, (long)1);
+ curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, (long)30);
gettimeofday(&cb_data.starttime, NULL);
res = curl_easy_perform(curl);