Wegener pointed out that CURLINFO_APPCONNECT_TIME didn't work with the multi
  interface and provided a patch that fixed the problem!
This commit is contained in:
Daniel Stenberg
2009-04-26 11:56:22 +00:00
parent 1272621ebc
commit 14df44dd3f
3 changed files with 13 additions and 3 deletions

View File

@@ -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;