cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURLINFO_REDIRECT_TIME is really fixed?

From: <xx_serena_xx_at_virgilio.it>
Date: Mon, 21 Oct 2002 15:22:18 +0200

I've tried to use libcurl for measuring the response time and the intermediate
times of the transaction between a client and my version of Web server Apache,
modified in order to support the HTTP redirection.
I've used the libcurl version 7.9.8 because, in the bugs fixed, i've found
this phrase:
   'CURLINFO_REDIRECT_TIME returns a correct time now'
Althought, the values returned by curl_easy_getinfo(..,CURLINFO_REDIRECT_TIME,..)
have someting wrong.
As example, here are some values (times in second) i've obtained in 4 different
executions of my test:
                                |#test:
                                |
option used | 1 2 3 4
____________________________|_____________________________________
CURLINFO_NAMELOOKUP_TIME | 0.01 0.01 0.01 0.01
CURLINFO_CONNECT_TIME | 0.01 0.01 0.01 0.01
CURLINFO_STARTTRANSFER_TIME | 0.052 0.072 0.02 0.058
CURLINFO_REDIRECT_TIME | 1.007 1.006 1.002 1.006
CURLINFO_TOTAL_TIME | 1.175 1.217 1.371 1.368

As you can see, the REDIRECT_TIME introduces 1 second (this appened for
every execution done).
Measuring the same times with a tool manually developed for taking
intermediate times, i've confirmed that this values are wrong.
I've not time to find the reasons of this added second in the source code,
but i've thought it was right to send this message to you.
Make me know if there's some error by my side of it's not true the CURLINFO_REDIRECT_TIME
in lubcurl 7.9.8 was fixed.
thanks.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-21