Skip to content
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

multi: fix odd total timer reset in file_do() while fetching file:// #12682

Closed
wants to merge 1 commit into from

Conversation

sergio-nsk
Copy link
Contributor

While working with timings with file:// urls, I've notices an issue: the total time interval is always less than the pre-transfer and the start transfer time intervals. The reason: Curl_prgsStartNow() is called twice: in MSTATE_INIT (properly) and in MSTATE_DO in file_do(), and TIMER_STARTSINGLE is set between those calls in MSTATE_CONNECT.

The total timer is properly reset in MSTATE_INIT.
MSTATE_CONNECT starts with resetting the timer that is a start point for
further multi states.
If file://, MSTATE_DO calls file_do() that should not reset the total timer.
Otherwise, the total time is always less than the pre-transfer and the start
transfer times.
@sergio-nsk sergio-nsk changed the title SPTCH-3413: fix odd total timer reset in file_do() multi: fix odd total timer reset in file_do() while fetching file:// Jan 11, 2024
@bagder bagder closed this in 98543fc Jan 11, 2024
@bagder
Copy link
Member

bagder commented Jan 11, 2024

Thanks!

@sergio-nsk sergio-nsk deleted the sergio-nsk/timings/1 branch January 11, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants