From f8f040e6596fa22b68198adf42dc6adcedfa57f0 Mon Sep 17 00:00:00 2001 From: Ryan Winograd Date: Mon, 26 Jun 2017 11:51:05 -0500 Subject: progress: prevent resetting t_starttransfer Prevent `Curl_pgrsTime` from modifying `t_starttransfer` when invoked with `TIMER_STARTTRANSFER` more than once during a single request. When a redirect occurs, this is considered a new request and `t_starttransfer` can be updated to reflect the `t_starttransfer` time of the redirect request. Closes #1616 Bug: https://github.com/curl/curl/pull/1602#issuecomment-310267370 --- tests/data/test1399 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/data/test1399 (limited to 'tests/data/test1399') diff --git a/tests/data/test1399 b/tests/data/test1399 new file mode 100644 index 000000000..fe3879df1 --- /dev/null +++ b/tests/data/test1399 @@ -0,0 +1,26 @@ + + + +unittest +Curl_pgrsTime + + + +# +# Client-side + + +none + + +unittest + + +Curl_pgrsTime unit tests + + +unit1399 + + + + -- cgit v1.2.3