diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-03-15 16:43:00 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-03-16 11:10:06 +0100 |
commit | f5700ea88baa5baeb63b7cd42bd12fb03f4e0f4e (patch) | |
tree | 867757824c00a87ed99eb3541ec8fb5d2fa5152f /src/slist_wc.h | |
parent | 236402fc2d02068b2ce3656200031ced2fa3c8b1 (diff) |
rate-limit: use three second window to better handle high speeds
Due to very frequent updates of the rate limit "window", it could
attempt to rate limit within the same milliseconds and that then made
the calculations wrong, leading to it not behaving correctly on very
fast transfers.
This new logic updates the rate limit "window" to be no shorter than the
last three seconds and only updating the timestamps for this when
switching between the states TOOFAST/PERFORM.
Reported-by: 刘佩东
Fixes #2386
Closes #2388
Diffstat (limited to 'src/slist_wc.h')
0 files changed, 0 insertions, 0 deletions