New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The idea of the starting time of 'dl_limit_start' #2406
Comments
For you, now, sure. For someone else, another point will make more sense. Rate limiting cannot be an exact science so we just need to find the best "middle ground" where we think we can work suitably for the majority. I don't believe in letting users set the starting point as virtually nobody would know where to set it. |
So how about we simply change the minimum period to be 1 millisecond ? #define MIN_RATE_LIMIT_PERIOD 1 |
very bad! Test Results#define MIN_RATE_LIMIT_PERIOD 1
#define MIN_RATE_LIMIT_PERIOD 3000
|
I would say that transferring 16MB and limiting the speed to 15M is a very bad test though, You'll get very few samples so depending on the early speed it will change a lot. I presume that in your case you had a very high initial speed so it delayed it a bit too much in that initial limit and then it didn't have time to correct that. |
Actual download speed:
Test#define MIN_RATE_LIMIT_PERIOD 1
#define MIN_RATE_LIMIT_PERIOD 3000
|
How is this test? |
That clearly shows how 1ms is worse than 3000ms, yes. Ben Greear on the mailing list however had serious issues with 3000:
I don't know what fixes that are needed, but I would imagine that Ben's transfer speed changes differently than yours. Possibly his starts out a bit slow so the initial limiting is far too "lenient", which would be a reason to not wait 3000ms until we check it again. |
I can't reproduce.Can you give a detailed test method? |
No, because it was Ben who had the trouble, not me. |
Any further suggestions or ideas? If not, I'm leaning on simply closing this... |
No response, closing. |
Possible positions of 'dl_limit_start' are as follows:
the reason:
'dl_limit_start(curl 7.60.0-DEV)' This parameter will be updated after three seconds.The initial value is set at (1)
possible problems:
(1)(2)(3) may waste a lot of time,the actual download speed is likely to become very fast (Within three seconds may be unrestricted).
idea:
Just my personal thoughts.
The text was updated successfully, but these errors were encountered: