make a little work-around for file:// in _is_connected() and voila, now the

multi interface works with file:// URLs fine (previously it crashed). This
won't make it work on Windows though...
This commit is contained in:
Daniel Stenberg 2002-12-13 13:47:58 +00:00
parent dff406a360
commit 9ae920c1b6
1 changed files with 5 additions and 0 deletions

View File

@ -380,6 +380,11 @@ CURLcode Curl_is_connected(struct connectdata *conn,
return CURLE_OPERATION_TIMEOUTED;
}
}
if(conn->protocol & PROT_FILE) {
/* we are connected, awesome! */
*connected = TRUE;
return CURLE_OK;
}
/* check for connect without timeout as we want to return immediately */
rc = waitconnect(sockfd, 0);