Use Curl_ssl_connect for non-blocking connect fallback
authorSven Wegener <sven.wegener@stealer.net>
Fri, 27 May 2011 15:46:11 +0000 (17:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 Dec 2011 21:37:37 +0000 (22:37 +0100)
This gets the appconnect time right for ssl backends, which don't
support non-blocking connects.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
lib/sslgen.c

index 9ad4ab1..8749392 100644 (file)
@@ -221,8 +221,7 @@ Curl_ssl_connect_nonblocking(struct connectdata *conn, int sockindex,
   return res;
 #else
   *done = TRUE; /* fallback to BLOCKING */
-  conn->ssl[sockindex].use = TRUE;
-  return curlssl_connect(conn, sockindex);
+  return Curl_ssl_connect(conn, sockindex);
 #endif /* non-blocking connect support */
 }