aboutsummaryrefslogtreecommitdiff
path: root/lib/progress.h
diff options
context:
space:
mode:
authorRyan Winograd <ryan@thewinograds.com>2017-06-21 12:15:46 -0500
committerDaniel Stenberg <daniel@haxx.se>2017-08-15 18:58:31 +0200
commit43d036e72488b4be5f48aaec9278a55dc22cb556 (patch)
tree32de6e2fd9ac79fac4fc5cc9ba75f4d2c614bd84 /lib/progress.h
parent0969901eb9a2efb9f204a48c2538925d27944444 (diff)
progress: Track total times following redirects
Update the progress timers `t_nslookup`, `t_connect`, `t_appconnect`, `t_pretransfer`, and `t_starttransfer` to track the total times for these activities when a redirect is followed. Previously, only the times for the most recent request would be tracked. Related changes: - Rename `Curl_pgrsResetTimesSizes` to `Curl_pgrsResetTransferSizes` now that the function only resets transfer sizes and no longer modifies any of the progress timers. - Add a bool to the `Progress` struct that is used to prevent double-counting `t_starttransfer` times. Added test case 1399. Fixes #522 and Known Bug 1.8 Closes #1602 Reported-by: joshhe on github
Diffstat (limited to 'lib/progress.h')
-rw-r--r--lib/progress.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/progress.h b/lib/progress.h
index ed57e3368..9333ab25c 100644
--- a/lib/progress.h
+++ b/lib/progress.h
@@ -47,7 +47,7 @@ void Curl_pgrsSetUploadSize(struct Curl_easy *data, curl_off_t size);
void Curl_pgrsSetDownloadCounter(struct Curl_easy *data, curl_off_t size);
void Curl_pgrsSetUploadCounter(struct Curl_easy *data, curl_off_t size);
int Curl_pgrsUpdate(struct connectdata *);
-void Curl_pgrsResetTimesSizes(struct Curl_easy *data);
+void Curl_pgrsResetTransferSizes(struct Curl_easy *data);
void Curl_pgrsTime(struct Curl_easy *data, timerid timer);
long Curl_pgrsLimitWaitTime(curl_off_t cursize,
curl_off_t startsize,