aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-06-22 21:36:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-06-22 21:36:53 +0000
commitdfe1884c2529d728750d0824f73055627673cd72 (patch)
tree4f6d30648e54d10f10401408f0f819ff344ce318 /include
parent3e5dcc8bcd4aaa7b6d7f8432327cbdd5487113e4 (diff)
Peter Silva introduced CURLOPT_MAX_SEND_SPEED_LARGE and
CURLOPT_MAX_RECV_SPEED_LARGE that limit tha maximum rate libcurl is allowed to send or receive data. This kind of adds the the command line tool's option --limit-rate to the library. The rate limiting logic in the curl app is now removed and is instead provided by libcurl itself. Transfer rate limiting will now also work for -d and -F, which it didn't before.
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index bd9236ed3..79e71ca0a 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -973,6 +973,11 @@ typedef enum {
Note that this is used only for SSL certificate processing */
CINIT(CONV_FROM_UTF8_FUNCTION, FUNCTIONPOINT, 144),
+ /* if the connection proceeds too quickly then need to slow it down */
+ /* limit-rate: maximum number of bytes per second to send or receive */
+ CINIT(MAX_SEND_SPEED_LARGE, OFF_T, 145),
+ CINIT(MAX_RECV_SPEED_LARGE, OFF_T, 146),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;