From 9ae920c1b6b274396128ed54b001b4561a1e708f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 13 Dec 2002 13:47:58 +0000 Subject: 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... --- lib/connect.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/connect.c b/lib/connect.c index d2080c452..1a4c193eb 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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); -- cgit v1.2.3