diff options
author | Ryan Winograd <ryan@thewinograds.com> | 2017-06-21 12:15:46 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-08-15 18:58:31 +0200 |
commit | 43d036e72488b4be5f48aaec9278a55dc22cb556 (patch) | |
tree | 32de6e2fd9ac79fac4fc5cc9ba75f4d2c614bd84 /lib/urldata.h | |
parent | 0969901eb9a2efb9f204a48c2538925d27944444 (diff) | |
download | curl-43d036e72488b4be5f48aaec9278a55dc22cb556.tar.gz |
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/urldata.h')
-rw-r--r-- | lib/urldata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index b4f18e7da..e45baff17 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1259,6 +1259,8 @@ struct Progress { struct curltime t_startop; struct curltime t_acceptdata; + bool is_t_startransfer_set; + /* upload speed limit */ struct curltime ul_limit_start; curl_off_t ul_limit_size; |