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?
to your account
In last cURL for Windows (https://curl.haxx.se/windows/)
maximum value of «Time Spent» in Cmd-window is «0:35:47» (35 min and 47 sec). At this point the timer is stopping and other dependent values (average speed, etc) are ruined.
Sorry, I do not speak English, I can not understand ALL from this point to end of field.
[curl -V output]
The text was updated successfully, but these errors were encountered:
That's 2147 seconds or 2147,000 milliseconds or 2147,000,000 microseconds.
2^31 is 2147,483,648. Seems like it isn't a coincidence. Are we using a 32 bit counter (on Windows) somewhere somehow where we shouldn't?
Sorry, something went wrong.
Thank you for 2^31 – it is great reason.
The problem is here. timediff_t is made an int for systems where time_t is only 32 bit, but it seems a bit too naive. We should make it attempt to use a 64 bit variable for that so that it better can hold microseconds beyond 35 minutes.
Lines 205 to 212
timediff: make it 64 bit (if possible) even with 32 bit time_t
... to make it hold microseconds too.
Successfully merging a pull request may close this issue.