diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-04-26 11:56:22 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-04-26 11:56:22 +0000 |
commit | 14df44dd3f9b562cb2ed37baca95446b05d2e66b (patch) | |
tree | 5defd58af3c012f0db477f3168972a3be33c1314 /lib/sslgen.c | |
parent | 1272621ebc51adca86555b6a6975286c4377a471 (diff) | |
download | curl-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.c | 6 |
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; |