]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: remove total timer reset in file_do() while fetching file://
authorSergey Markelov <sergey@solidstatenetworks.com>
Thu, 11 Jan 2024 00:23:00 +0000 (17:23 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 11 Jan 2024 07:51:29 +0000 (08:51 +0100)
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

lib/file.c

index c985071376b6b66836c48bb3297e6cde3156ba7e..1a9ef213753cabc2cd032570dff797214e2274cd 100644 (file)
@@ -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);