aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-10-17 09:05:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-10-17 09:05:44 +0000
commite3a61fba52fc3145594e9b9e14f16802d5e32068 (patch)
tree81939b4b540a0e5dab38232e5dc2f393cab43b37 /lib
parent65794f60ecc4f8bc2279dd3ffc64410719843b72 (diff)
make the low_speed check set the expire timer so that it has a chance to work
even when using curl_multi_socket() or even using the multi_perform() when relying on multi_timeout() to be good.
Diffstat (limited to 'lib')
-rw-r--r--lib/speedcheck.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/speedcheck.c b/lib/speedcheck.c
index 5ee009ee2..adda8a963 100644
--- a/lib/speedcheck.c
+++ b/lib/speedcheck.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -64,6 +64,12 @@ CURLcode Curl_speedcheck(struct SessionHandle *data,
else {
/* we keep up the required speed all right */
data->state.keeps_speed = now;
+
+ if(data->set.low_speed_limit)
+ /* if there is a low speed limit enabled, we set the expire timer to
+ make this connection's speed get checked again no later than when
+ this time is up */
+ Curl_expire(data, data->set.low_speed_time*1000);
}
return CURLE_OK;
}