cURL / Mailing Lists / curl-library / Single Mail

curl-library

redirect time

From: T. Bharath <TBharath_at_responsenetworks.com>
Date: Fri, 17 May 2002 13:12:01 -0400

Daniel

With regards to the CURLINFO_REDIRECT_TIME
the documentation states that it contains the total redirection time
for all the redirections (assuming 3 redirections before the final
transfer,this should hold the execution time for all the three redirections)

But looking at the code in 7.9.7 in progress.c where the redirection
time is
calculated the code is

    data->progress.t_redirect =
      (double)Curl_tvdiff(Curl_tvnow(),
data->progress.t_startsingle)/1000.0;
  
This basically resets what ever it held before

Should it be
    data->progress.t_redirect +=
      (double)Curl_tvdiff(Curl_tvnow(),
data->progress.t_startsingle)/1000.0;

Am I correct or have i not understood the doc
Your clarification would be greatly appreciated

Regards
Bharath

  

_______________________________________________________________

Hundreds of nodes, one monster rendering program.
Now that’s a super model! Visit http://clustering.foundries.sf.net/
Received on 2002-05-17