summaryrefslogtreecommitdiff
path: root/lib/url.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-05-07 23:49:29 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-05-07 23:49:29 +0200
commitadaf87530dc561314a2261fa6d26c38ce999876f (patch)
treea261b70cd941fbe8c4986f06f33dd1aeaf71675d /lib/url.h
parent8914857092f1c7ceb3342b9c4f5e03587e634f5d (diff)
downloadcurl-adaf87530dc561314a2261fa6d26c38ce999876f.tar.gz
multi interface: missed storing connection time
Dirk Manske reported a regression. When connecting with the multi interface, there were situations where libcurl wouldn't store connect time correctly as it used to (and is documented to) do. Using his fine sample program we could repeat it, and I wrote up test case 573 using that code. The problem does not easily show itself using the local test suite though. The fix, also as suggested by Dirk, is a bit on the ugly side as it adds yet another call to Curl_verboseconnect() and setting the TIMER_CONNECT time. That situation is subject for some closer inspection in the future.
Diffstat (limited to 'lib/url.h')
-rw-r--r--lib/url.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/url.h b/lib/url.h
index cb3dd2f60..63d7f2c48 100644
--- a/lib/url.h
+++ b/lib/url.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -86,4 +86,11 @@ void Curl_reset_reqproto(struct connectdata *conn);
CURLcode Curl_connected_proxy(struct connectdata *conn);
+#ifdef CURL_DISABLE_VERBOSE_STRINGS
+#define Curl_verboseconnect(x) do { } while (0)
+#else
+void Curl_verboseconnect(struct connectdata *conn);
+#endif
+
+
#endif