summaryrefslogtreecommitdiff
path: root/lib/sslgen.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-04-26 11:56:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-04-26 11:56:22 +0000
commit14df44dd3f9b562cb2ed37baca95446b05d2e66b (patch)
tree5defd58af3c012f0db477f3168972a3be33c1314 /lib/sslgen.c
parent1272621ebc51adca86555b6a6975286c4377a471 (diff)
downloadcurl-14df44dd3f9b562cb2ed37baca95446b05d2e66b.tar.gz
- Bug report #2779733 (http://curl.haxx.se/bug/view.cgi?id=2779733) by Sven
Wegener pointed out that CURLINFO_APPCONNECT_TIME didn't work with the multi interface and provided a patch that fixed the problem!
Diffstat (limited to 'lib/sslgen.c')
-rw-r--r--lib/sslgen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c
index 8325dccf0..f512a8807 100644
--- a/lib/sslgen.c
+++ b/lib/sslgen.c
@@ -195,9 +195,13 @@ Curl_ssl_connect_nonblocking(struct connectdata *conn, int sockindex,
bool *done)
{
#ifdef curlssl_connect_nonblocking
+ CURLcode res;
/* mark this is being ssl requested from here on. */
conn->ssl[sockindex].use = TRUE;
- return curlssl_connect_nonblocking(conn, sockindex, done);
+ res = curlssl_connect_nonblocking(conn, sockindex, done);
+ if(!res && *done == TRUE)
+ Curl_pgrsTime(conn->data, TIMER_APPCONNECT); /* SSL is connected */
+ return res;
#else
*done = TRUE; /* fallback to BLOCKING */
conn->ssl[sockindex].use = TRUE;