mirror of
https://github.com/curl/curl.git
synced 2026-08-08 02:32:54 +03: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue