Commit 9ae920c1 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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...
parent dff406a3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);