From: Sergey Markelov Date: Thu, 11 Jan 2024 00:23:00 +0000 (-0700) Subject: multi: remove total timer reset in file_do() while fetching file:// X-Git-Tag: curl-8_6_0~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98543fc2cffd229340e9c50b12ef670d2383e438;p=thirdparty%2Fcurl.git multi: remove total timer reset in file_do() while fetching file:// 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. Closes #12682 --- diff --git a/lib/file.c b/lib/file.c index c985071376..1a9ef21375 100644 --- a/lib/file.c +++ b/lib/file.c @@ -419,8 +419,6 @@ static CURLcode file_do(struct Curl_easy *data, bool *done) *done = TRUE; /* unconditionally */ - Curl_pgrsStartNow(data); - if(data->state.upload) return file_upload(data);