]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
clean up start time and t_startsingle use so that redirect_time works properly
authorDaniel Stenberg <daniel@haxx.se>
Mon, 15 Nov 2004 11:27:03 +0000 (11:27 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 15 Nov 2004 11:27:03 +0000 (11:27 +0000)
CHANGES
RELEASE-NOTES
lib/connect.c
lib/progress.h
lib/ssluse.c
lib/url.c

diff --git a/CHANGES b/CHANGES
index daa462aabc570792ef1ac763572760a34f1f4ed8..00fbbb885597bcbf5cf7b22ae605ddd08f8317b1 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,8 +6,22 @@
 
                                   Changelog
 
+Daniel (15 November 2004)
+- To test my fix for the CURLINFO_REDIRECT_TIME bug, I added time_redirect and
+  num_redirects support to the -w writeout option for the command line tool.
+
+- Wojciech Zwiefka found out that CURLINFO_REDIRECT_TIME didn't work as
+  documented.
+  
 Daniel (12 November 2004)
--                 *** New Behaviour Alert ***
+- Gisle Vanem modigied the MSVC and Netware makefiles to build without
+  libcurl.def
+
+- Dan Fandrich added the --disable-crypto-auth option to configure to allow
+  libcurl to build without Digest support. (I figure it should also explicitly
+  disable Negotiate and NTLM.)
+
+-                 *** Modified Behaviour Alert ***
 
   Setting CURLOPT_POSTFIELDS to NULL will no longer do a GET.
 
index 8f90c2c9b35c138c8c83ea80754e10248283d6f7..0e5e0705a3b8617e246ee9c8e2ae94802450e723 100644 (file)
@@ -6,10 +6,11 @@ Curl and libcurl 7.12.3
  Available curl_easy_setopt() options:     121
  Number of public functions in libcurl:    46
  Amount of public web site mirrors:        13
- Number of known libcurl bindings:         27
+ Number of known libcurl bindings:         28
 
 This release includes the following changes:
 
+ o -w time_redirect and num_redirects
  o no longer uses libcurl.def for building on Windows, OS/2 and Netware
  o builds on Windows CE
  o request retrying, --retry and family added
@@ -18,6 +19,7 @@ This release includes the following changes:
 
 This release includes the following bugfixes:
 
+ o CURLINFO_REDIRECT_TIME works
  o building with gssapi libs and hdeaders in the default dirs
  o curl_getdate() parsing of dates later than year 2037 with 32 bit time_t
  o curl -v when stderr is closed wrote debug messages to the network socket
@@ -34,6 +36,7 @@ Other curl-related news since the previous public release:
  o pycurl 7.12.2: http://pycurl.sf.net/
  o TclCurl 0.12.2: http://personal1.iddeo.es/andresgarci/tclcurl/english/
  o libcurl.NET 1.1: http://www.seasideresearch.com/downloads.html
+ o RCurl 0.5.1: http://www.omegahat.org/RCurl/
 
 This release would not have looked like this without help, code, reports and
 advice from friends like these:
index c61301ad2a150cefb8859cbd863cef2febea3075..1851431e80cee2d18ae8202b6d6e1ba658d4181a 100644 (file)
@@ -491,7 +491,7 @@ CURLcode Curl_is_connected(struct connectdata *conn,
   *connected = FALSE; /* a very negative world view is best */
 
   /* Evaluate in milliseconds how much time that has passed */
-  has_passed = Curl_tvdiff(Curl_tvnow(), data->progress.start);
+  has_passed = Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle);
 
   /* subtract the most strict timeout of the ones */
   if(data->set.timeout && data->set.connecttimeout) {
@@ -716,7 +716,7 @@ CURLcode Curl_connecthost(struct connectdata *conn,  /* context */
     long has_passed;
 
     /* Evaluate in milliseconds how much time that has passed */
-    has_passed = Curl_tvdiff(Curl_tvnow(), data->progress.start);
+    has_passed = Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle);
 
 #ifndef min
 #define min(a, b)   ((a) < (b) ? (a) : (b))
index dcfcaf7f32023a75d2ca228f618a516e15a19835..ad9d6623ec25021c04976840398050ee8d6a4db5 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef __PROGRESS_H
 #define __PROGRESS_H
 /***************************************************************************
- *                                  _   _ ____  _     
- *  Project                     ___| | | |  _ \| |    
- *                             / __| | | | |_) | |    
- *                            | (__| |_| |  _ <| |___ 
+ *                                  _   _ ____  _
+ *  Project                     ___| | | |  _ \| |
+ *                             / __| | | | |_) | |
+ *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
  * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
@@ -12,7 +12,7 @@
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
  * are also available at http://curl.haxx.se/docs/copyright.html.
- * 
+ *
  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  * copies of the Software, and permit persons to whom the Software is
  * furnished to do so, under the terms of the COPYING file.
@@ -37,7 +37,7 @@ typedef enum {
   TIMER_REDIRECT,
   TIMER_LAST /* must be last */
 } timerid;
-  
+
 void Curl_pgrsDone(struct connectdata *);
 void Curl_pgrsStartNow(struct SessionHandle *data);
 void Curl_pgrsSetDownloadSize(struct SessionHandle *data, curl_off_t size);
index f48928c9cd3b3ec3e96040f550a4cca6502ff955..47715ad9cf1140b5e78da51410ed4484a0ad6eee 100644 (file)
@@ -1273,7 +1273,7 @@ Curl_SSLConnect(struct connectdata *conn,
       long has_passed;
 
       /* Evaluate in milliseconds how much time that has passed */
-      has_passed = Curl_tvdiff(Curl_tvnow(), data->progress.start);
+      has_passed = Curl_tvdiff(Curl_tvnow(), data->progress.t_startsingle);
 
       /* get the most strict timeout of the ones converted to milliseconds */
       if(data->set.timeout &&
index 78224df0e947ce80599114dda476d8b9f90ce2b0..6ee238360bf57aa54aefb0e63c5915dd53aee147 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -2259,11 +2259,6 @@ static CURLcode CreateConnection(struct SessionHandle *data,
   conn->range = data->set.set_range;              /* clone the range setting */
   conn->resume_from = data->set.set_resume_from;   /* inherite resume_from */
 
-  /* Set the start time temporary to this creation time to allow easier
-     timeout checks before the transfer has started for real. The start time
-     is later set "for real" using Curl_pgrsStartNow(). */
-  conn->data->progress.start = conn->created;
-
   conn->bits.user_passwd = data->set.userpwd?1:0;
   conn->bits.proxy_user_passwd = data->set.proxyuserpwd?1:0;
   conn->bits.no_body = data->set.opt_no_body;