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:
parent
dff406a360
commit
9ae920c1b6
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user