diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-12-06 09:37:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-12-06 09:37:40 +0000 |
commit | 840e796aa9c12a94bec90ee2a0bd49ee3163deb1 (patch) | |
tree | 1bdce85e15bc83836692589498ad2617adc135e8 /lib/urldata.h | |
parent | 5fd096da8d5667384c40280e408227919afda6dc (diff) |
Sebastien Willemijns reported bug #1603712
(http://curl.haxx.se/bug/view.cgi?id=1603712) which is about connections
getting cut off prematurely when --limit-rate is used. While I found no such
problems in my tests nor in my reading of the code, I found that the
--limit-rate code was severly flawed (since it was moved into the lib, since
7.15.5) when used with the easy interface and it didn't work as documented so
I reworked it somewhat and now it works for my tests.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index f16cf10bc..6baf3dba7 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -503,12 +503,14 @@ struct hostname { /* * Flags on the keepon member of the Curl_transfer_keeper */ -enum { - KEEP_NONE, - KEEP_READ, - KEEP_WRITE -}; +#define KEEP_NONE 0 +#define KEEP_READ 1 /* there is or may be data to read */ +#define KEEP_WRITE 2 /* there is or may be data to write */ +#define KEEP_READ_HOLD 4 /* when set, no reading should be done but there + might still be data to read */ +#define KEEP_WRITE_HOLD 8 /* when set, no writing should be done but there + might still be data to write */ /* * This struct is all the previously local variables from Curl_perform() moved |