From f6259035258d41d25d210562925cf0e73bb79624 Mon Sep 17 00:00:00 2001 From: Sergey Markelov Date: Wed, 10 Jan 2024 17:23:00 -0700 Subject: [PATCH] SPTCH-3413: fix odd total timer reset in file_do() 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. --- lib/file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/file.c b/lib/file.c index c751e8861a99b7..63be45990cc280 100644 --- a/lib/file.c +++ b/lib/file.c @@ -420,8 +420,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);