1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

View File

@ -380,6 +380,11 @@ CURLcode Curl_is_connected(struct connectdata *conn,
return CURLE_OPERATION_TIMEOUTED; 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 */ /* check for connect without timeout as we want to return immediately */
rc = waitconnect(sockfd, 0); rc = waitconnect(sockfd, 0);